| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::Collection Class Reference#include <plistCollections.h>
Inheritance diagram for plist::Collection: ![]() Detailed DescriptionProvides a common base class for the collection-oriented primitives, Dictionary and Array.When a collection, you can call addEntry() or setEntry() you can either:
This class supports callbacks upon modification through the use of the CollectionListener interface. Note that we only store a pointer to the listener list, which is typically unallocated when no listeners are active. This should ensure minimal memory usage per object, as well as support safe storage of plist objects in inter-process shared memory regions. If you are using these in a shared memory region, just be sure that only the process with listeners does any and all modifications, and that it unsubscribes before detaching from the region (or else destroys the region itself) There isn't a callback if entries themselves are modified, only when new entries are added, or old ones removed. If you want to know any time any aspect of any entry is modified, listen for the add and remove callbacks, and then add yourself as a listener to each entry individually.
Definition at line 37 of file plistCollections.h.
Member Function Documentation
when an empty string is needed for not found items (defined as a function instead of just a constant member so there's no issues with initialization order) Definition at line 103 of file plistCollections.h. Referenced by plist::ArrayBase::getComment(), and plist::Dictionary::getComment().
how much to indent each sub-collection (defined as a function instead of just a constant member so there's no issues with initialization order) Definition at line 109 of file plistCollections.h. Referenced by getIndentationPrefix(), plist::ArrayBase::saveXML(), plist::Dictionary::saveXML(), and OutputConfig< T >::saveXML().
defines separator between sub-collections (defined as a function instead of just a constant member so there's no issues with initialization order) Definition at line 65 of file plistCollections.h. Referenced by plist::ArrayBase::getLongestKeyLen(), plist::Dictionary::getLongestKeyLen(), plist::ArrayBase::getSubEntry(), plist::Dictionary::getSubEntry(), plist::operator<<(), and ConfigurationEditor::refresh().
The documentation for this class was generated from the following files: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:09:08 2007 by Doxygen 1.4.7 |