• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Data Formatters for C++ templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data Formatters for C++ templates


  • Subject: Re: Data Formatters for C++ templates
  • From: "William H. Schultz" <email@hidden>
  • Date: Tue, 7 Apr 2009 11:32:15 -0700



On Apr 4, 2009, at 7:45 PM, David Dunham wrote:

I'm trying to create an Xcode data formatter for boost::shared_ptr<CLASS> -- one that's universal.

Alternatively I can do (say) boost::shared_ptr<ImageFrame> but don't know how to leverage a data formatter (ImageFrame) I already have.

Is it possible to use templates without having to recreate each possibility?



So far as I'm aware, each one has to be created separately.

My solution to the boost::shared_ptr issue has been to put as much as I can on its non-template members:

<key>boost::detail::shared_count</key>
<dict>
<key>SummaryString</key>
<string>%pi_%:s</string>
</dict>
<key>boost::detail::sp_counted_base *</key>
<dict>
<key>SummaryString</key>
<string>use: %boost::detail::sp_counted_base.use_count_% weak: %boost::detail::sp_counted_base.weak_count_%</string>
</dict>
<key>boost::detail::weak_count</key>
<dict>
<key>SummaryString</key>
<string>%pi_%:s</string>
</dict>


Then for each template instance, I do what seems more appropriate at the time. Usually, it's something along these lines:

		<key>SummaryString</key>
		<string>%pn%:s -- %px%:s</string>
		<key>ValueString</key>
		<string>%px%:v</string>



I haven't found a global method of handling templates.


------------------------------- Hank Schultz Cedrus Corporation http://www.cedrus.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Data Formatters for C++ templates (From: David Dunham <email@hidden>)

  • Prev by Date: Re: RunScript Phase in Build Output
  • Next by Date: Re: problems debugging cocoa app w/ gdb
  • Previous by thread: Data Formatters for C++ templates
  • Next by thread: warning messages upon starting the debugger.
  • Index(es):
    • Date
    • Thread