| 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, Map, Array, and Vector.
Definition at line 13 of file plistCollections.h.
Constructor & Destructor Documentation
Member Function Documentation
get notified of changes; be sure to call removeCollectionListener() before destructing l!
Definition at line 16 of file plistCollections.cc.
insert a new entry to the dictionary, with key name and value val, control of deallocation given to collection
Implemented in plist::Dictionary, and plist::Array.
insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name, but gives a warning)
Implemented in plist::Dictionary, and plist::Array. Referenced by plist::Dictionary::addEntry().
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 86 of file plistCollections.h. Referenced by Collection::emptyStr().
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 92 of file plistCollections.h.
run through collectionListeners, calling CollectionListener::plistCollectionEntriesChanged(*this)
Definition at line 66 of file plistCollections.cc. Referenced by plist::Array::clear(), plist::Dictionary::clear(), and plist::Array::setEntry().
run through collectionListeners, calling CollectionListener::plistCollectionEntryAdded(*this,val)
Definition at line 46 of file plistCollections.cc. Referenced by plist::Array::addEntry(), plist::Dictionary::addEntry(), plist::Array::setEntry(), and plist::Dictionary::setEntry().
run through collectionListeners, calling CollectionListener::plistCollectionEntryRemoved(*this,val)
Reimplemented in plist::Dictionary, and plist::Array. Definition at line 56 of file plistCollections.cc.
returns comment retrieved from loaded file, or any subsequent call to setComment
Implemented in plist::Dictionary, and plist::Array.
return the value of the key name, or NULL if it doesn't exist
Implemented in plist::Dictionary, and plist::Array. Referenced by operator[]().
return the length of the longest key for formatting purposes
Implemented in plist::Dictionary, and plist::Array. Referenced by getLongestKeyLenOther().
a forwarding function to allow recursive flow of control (gets around not being able to call protected functions on non-this objects)
Definition at line 75 of file plistCollections.h. Referenced by plist::Array::getLongestKeyLen(), plist::Dictionary::getLongestKeyLen(), and plist::operator<<().
assignment (don't assign listeners); subclass should call fireEntriesChanged after calling this (and updating it storage)
Definition at line 59 of file plistCollections.h.
return the value of the key name, or NULL if it doesn't exist (equivalent to getEntry(name))
Reimplemented in plist::Array. Definition at line 36 of file plistCollections.h.
no longer take notification of changes to this object's value
Definition at line 24 of file plistCollections.cc.
replaces previous comment for name, or adds it if it doesn't already exist (can preceed actual entry!)
Implemented in plist::Dictionary, and plist::Array.
insert a new entry to the dictionary, with key name and value val, control of deallocation given to collection
Implemented in plist::Dictionary, and plist::Array.
insert a new entry to the dictionary, with key name and value val (replaces any previous entry by same name, but gives a warning)
Implemented in plist::Dictionary, and plist::Array.
sets trimExtraLoad and trimExtraSave to the save value
Definition at line 50 of file plistCollections.h.
Member Data Documentation
stores a list of the current listeners
Definition at line 70 of file plistCollections.h. Referenced by addCollectionListener(), fireEntriesChanged(), fireEntryAdded(), fireEntryRemoved(), isCollectionListener(), removeCollectionListener(), and ~Collection().
if true, unloaded items in the collection will be removed after a load, and new entries will be created for extras in the source (brings storage into complete sync with input)
Definition at line 80 of file plistCollections.h. Referenced by getTrimExtraLoad(), plist::Array::loadXML(), plist::Dictionary::loadXML(), plist::Array::loadXMLNode(), plist::Dictionary::loadXMLNode(), and setTrimExtra().
if true, unsaved items in the destination will be removed after a save (brings output XML tree into complete sync with storage)
Definition at line 82 of file plistCollections.h. Referenced by getTrimExtraSave(), plist::Array::saveXML(), plist::Dictionary::saveXML(), and setTrimExtra().
if true (the default) loadXML will give warnings if there are unused entries in the node it is passed (can only happen if trimExtraLoad is false), or extra values in a file being saved into (can only happen if trimExtraSave is false)
Definition at line 78 of file plistCollections.h. Referenced by getUnusedWarning(), plist::Array::loadXMLNode(), plist::Dictionary::loadXMLNode(), plist::Array::saveXML(), plist::Dictionary::saveXML(), and setUnusedWarning().
The documentation for this class was generated from the following files: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:23 2006 by Doxygen 1.4.7 |