Custom Data Formatter for C++ Template Classes
Custom Data Formatter for C++ Template Classes
- Subject: Custom Data Formatter for C++ Template Classes
- From: Michael Rice <email@hidden>
- Date: Tue, 19 Jul 2005 20:50:24 -0500
Thanks to Jim and Chris, I have been able to develop an Xcode plugin
for displaying summary info for my data types in the debugger. My
next challenge is to do the same for a C++ template class. It
surprises me that Xcode can't display any summary info for the
Standard C++ collections, such as std::vector. I know it would be
difficult/impossible to display a snapshot of the data. However, in
the std::vector case, I would like to see the size of the collection.
I tried adding a data formatter like:
template <class Type>
char* MyTemplateToCString(const MyTemplate<Type>* objPtr, int ID);
using various format specs in the .plist, but none were successful.
It looks like the problem may be in how to specify the data formatter
function in the .plist file.
So, is there any way to display summary info for a template class?
Maybe just for specific sets of template parameters (e.g.,
std::vector<int>)?
Thanks.
Michael
_______________________________________________
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