![]() |
VR-Forces 4.0.4 Class Documentation
|

Public Member Functions | |
| DtModelSet () | |
| default constructor | |
| DtModelSet (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual | ~DtModelSet () |
| destructor | |
| DtModelSet (const DtModelSet &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtModelSet & | operator= (const DtModelSet &orig) |
| assignment operator | |
| virtual bool | load (const DtFilename &) |
| virtual bool | save (const DtFilename &) |
| virtual DtModelSetEntry * | find (const DtObjectType &) const |
| virtual DtModelSetEntry * | findMatchingPattern (const DtObjectType &) const |
| virtual DtModelSetEntry * | findByUniqueID (const DtString &) const |
| virtual void | setComment (const DtString &) |
| virtual const DtString | comment () const |
| DtObjectType | objectTypeFor (const DtString &label) const |
| Returns object type for item matching label. | |
| virtual DtModelSetEntry * | addModel (DtModelSetEntry *) |
| Clones the model and adds it. Returns the cloned model. | |
| virtual void | emptyList () |
| virtual void | entitiesForObjectType (const DtObjectType &o, std::list< DtString > &list) const |
| Give the object type, return all names that match (including wild cards) that object type. | |
| int | version () const |
| Returns an entry given a unique ID. | |
| virtual DtString | createUniqueID (const DtModelSetEntry *) const |
| Creates a unique id for the given value. | |
Static Public Member Functions | |
| static DtModelSet * | create (const DtString &, DtReaderWriterRegistry *const parentRegistry=NULL) |
Protected Member Functions | |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings) |
| Constructs a DtRwString item, and then retrieves it from the stream. | |
| void | copyList (const DtModelSet &orig) |
| Non-virtual since it is called by the constructor. | |
| void | clear () |
| Non-virtual since is it called by the constructor/destructor. | |
| virtual void | writeSelf (FILE *fp, int i, bool writeUnspecified, const DtFilename &path) |
| Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry. | |
Protected Attributes | |
| DtString | myFilename |
| DtString | myComment |
| DtRwInt | myVersion |
default constructor
| DtModelSet::DtModelSet | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| virtual DtModelSet::~DtModelSet | ( | ) | [virtual] |
destructor
| DtModelSet::DtModelSet | ( | const DtModelSet & | orig, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtModelSet& DtModelSet::operator= | ( | const DtModelSet & | orig | ) |
assignment operator
| virtual bool DtModelSet::load | ( | const DtFilename & | ) | [virtual] |
| virtual bool DtModelSet::save | ( | const DtFilename & | ) | [virtual] |
| virtual DtModelSetEntry* DtModelSet::find | ( | const DtObjectType & | ) | const [virtual] |
| virtual DtModelSetEntry* DtModelSet::findMatchingPattern | ( | const DtObjectType & | ) | const [virtual] |
| virtual DtModelSetEntry* DtModelSet::findByUniqueID | ( | const DtString & | ) | const [virtual] |
| virtual void DtModelSet::setComment | ( | const DtString & | ) | [virtual] |
| virtual const DtString DtModelSet::comment | ( | ) | const [virtual] |
| static DtModelSet* DtModelSet::create | ( | const DtString & | , |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) | [static] |
| DtObjectType DtModelSet::objectTypeFor | ( | const DtString & | label | ) | const |
Returns object type for item matching label.
| virtual DtModelSetEntry* DtModelSet::addModel | ( | DtModelSetEntry * | ) | [virtual] |
Clones the model and adds it. Returns the cloned model.
| virtual void DtModelSet::emptyList | ( | ) | [virtual] |
| virtual void DtModelSet::entitiesForObjectType | ( | const DtObjectType & | o, |
| std::list< DtString > & | list | ||
| ) | const [virtual] |
Give the object type, return all names that match (including wild cards) that object type.
Will not add the name if it already exists in the list
| int DtModelSet::version | ( | ) | const [inline] |
Returns an entry given a unique ID.
References myVersion.
| virtual DtString DtModelSet::createUniqueID | ( | const DtModelSetEntry * | ) | const [virtual] |
Creates a unique id for the given value.
| virtual DtlObjPtr DtModelSet::getData | ( | DtlObjPtr | args, |
| const DtFilename & | searchPath, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) | [protected, virtual] |
Constructs a DtRwString item, and then retrieves it from the stream.
Implements DtRwList.
| void DtModelSet::copyList | ( | const DtModelSet & | orig | ) | [protected] |
Non-virtual since it is called by the constructor.
| void DtModelSet::clear | ( | ) | [protected] |
Non-virtual since is it called by the constructor/destructor.
| virtual void DtModelSet::writeSelf | ( | FILE * | fp, |
| int | indentLevel, | ||
| bool | writeUnspecified, | ||
| const DtFilename & | path | ||
| ) | [protected, virtual] |
Called from putSelf, calls myRegistry.putSelf which in turn calls putSelf on each reader/writer in the registry.
Reimplemented from DtReaderWriter.
DtString DtModelSet::myFilename [protected] |
DtString DtModelSet::myComment [protected] |
DtRwInt DtModelSet::myVersion [protected] |
Referenced by version().