![]() |
VR-Forces 5.0.1 Developer's Guide
|
Static Public Attributes | |
| static const DtString | theVariableBindingsName |
Protected Attributes | |
| std::vector < DtReaderWriterRegistryData * > | myData |
| bool | myLocalDataFlag |
| DtRwVariableBindings * | myVariableBindings |
| DtReaderWriterRegistry::DtReaderWriterRegistry | ( | ) |
default and real constructor
| DtReaderWriterRegistry::DtReaderWriterRegistry | ( | const DtReaderWriterRegistry & | orig | ) |
copy constructor; copies localDataFlag only.
| DtReaderWriterRegistry::~DtReaderWriterRegistry | ( | ) |
destructor
| DtReaderWriterRegistry& DtReaderWriterRegistry::operator= | ( | const DtReaderWriterRegistry & | orig | ) |
assignment operator
| bool DtReaderWriterRegistry::localData | ( | ) | const |
Indicates whether or not there is any local data; clear (false) by default. When true, including DtReaderWriter will call putData/getData. Otherwise, will just call putSelf/getSelf for each registered item.
| void DtReaderWriterRegistry::setLocalData | ( | ) |
| void DtReaderWriterRegistry::clearLocalData | ( | ) |
| void DtReaderWriterRegistry::swap | ( | DtReaderWriterRegistry & | other | ) |
Swaps the registry data of this DtReaderWriterRegistry and another. All data from the other entry will be moved to this DtReaderWriterRegistry and all data from this DtReaderWriterRegistry will be moved to the other.
| void DtReaderWriterRegistry::addEntry | ( | const DtSymbolString & | keyword, |
| DtReaderWriter *const | rw | ||
| ) |
Adds an entry with a DtReaderWriter for the given keyword. An optional DtList of DtString* keyword aliases may be specified.
Referenced by DtVariableParameterReaderWriter< _Container >::createRwStructure().
| void DtReaderWriterRegistry::insertEntry | ( | int | index, |
| DtReaderWriter *const | rw | ||
| ) |
| void DtReaderWriterRegistry::addEntryBefore | ( | const DtSymbolString & | keyword, |
| DtReaderWriter *const | rw, | ||
| const DtString & | addBefore | ||
| ) |
| void DtReaderWriterRegistry::addEntryBefore | ( | const DtSymbolString & | keyword, |
| DtReaderWriter *const | rw, | ||
| DtReaderWriter *const | addBefore | ||
| ) |
| void DtReaderWriterRegistry::addEntryAfter | ( | const DtSymbolString & | keyword, |
| DtReaderWriter *const | rw, | ||
| const DtString & | addAfter | ||
| ) |
| void DtReaderWriterRegistry::addEntryAfter | ( | const DtSymbolString & | keyword, |
| DtReaderWriter *const | rw, | ||
| DtReaderWriter *const | addAfter | ||
| ) |
| void DtReaderWriterRegistry::removeEntry | ( | const DtSymbolString & | keyword | ) |
Removes the entry for the given keyword.
Referenced by DtVariableParameterReaderWriter< _Container >::createRwStructure().
| void DtReaderWriterRegistry::removeEntry | ( | DtReaderWriter *const | rw | ) |
| void DtReaderWriterRegistry::removeEntry | ( | const DtReaderWriter *const | rw | ) |
| void DtReaderWriterRegistry::removeEntry | ( | int | ) |
| DtReaderWriter* const DtReaderWriterRegistry::readerWriter | ( | const DtString & | keyword | ) |
Returns the DtReaderWriter for the indicated keyword.
| void DtReaderWriterRegistry::putSelf | ( | std::string & | fp, |
| int | indentLevel, | ||
| bool | writeUnspecified, | ||
| const DtFilename & | path | ||
| ) |
| void DtReaderWriterRegistry::getSelf | ( | DtlObjPtr | args, |
| const std::vector< DtFilename > & | searchPaths, | ||
| const DtVariableBindingsList & | variableBindings | ||
| ) |
Iterates over list of entries and calls setValueSpecified() on each item. The specified flags are used for optional values. Objects are marked as specified if read (by getSelf) or set through a mutator and unspecified objects are not written. If recurse is true, it will recursively call setValueSpecified() over the structure. If recurse is false, the specified flag is only set the specified flag in the immediate members in myData.
|
inline |
|
inline |
References myData.
|
virtual |
Given a keyword, returns the registry item that matches that keyword.
|
virtual |
Given a name, returns the registry item that has a name that matches that name.
|
virtual |
Clears out all registry and variable bindings data.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets local variable bindings to the specified value. The bindings are copied to this registry, and the pointer is not needed after this call. NULL is a valid input to this method.
|
virtual |
Adds a new variable binding to this registry. This call will create a new DtReaderWriter subclass based on the type string specified. It will have the default value for this type. The newly create entry is returned. A variableBindings class for this registry will be created if it doesn't already have one.
| bool DtReaderWriterRegistry::operator== | ( | const DtReaderWriterRegistry & | ) | const |
| bool DtReaderWriterRegistry::operator!= | ( | const DtReaderWriterRegistry & | ) | const |
|
static |
|
protected |
virtual DtListItem * lookup(const DtSymbolString &keyword); virtual DtListItem * lookup(DtReaderWriter * const rw);
Referenced by registryData().
|
protected |
|
protected |