![]() |
VR-Forces 4.0.4 Class Documentation
|
DtReaderWriterFileExtensible is a ReaderWriteFile who's exact name is determined at runtime as defined by the extension. More...

Public Member Functions | |
| DtReaderWriterFileExtensible () | |
| default constructor | |
| DtReaderWriterFileExtensible (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| real constructor | |
| DtReaderWriterFileExtensible (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriterFileExtensible (const DtString &name, const DtReaderWriterFileExtensible &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtReaderWriterFileExtensible (const DtSymbolString &name, const DtReaderWriterFileExtensible &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriterFileExtensible & | operator= (const DtReaderWriterFileExtensible &orig) |
| assignment operator | |
| DtReaderWriterFileExtensible & | operator= (const DtReaderWriterFile &orig) |
| assignment operator | |
| DtReaderWriterFileExtensible & | operator= (const DtFilename &orig) |
| virtual | ~DtReaderWriterFileExtensible () |
| destructor | |
| virtual void | loadFile (const DtFilename &searchPath, const DtVariableBindingsList &variableBindings, DtlObjStringMap *commentMap=NULL) |
| virtual void | substitute (const DtVariableBindingsList &variableBindings) |
| Substitutes any variables in the list to variable substituted filename. | |
Static Public Member Functions | |
| static std::list< DtString > * | getExtensionList () |
| Get the list of extensions currently accepted. | |
| static void | addExtension (DtString) |
| Add a new extension to the back of the line. | |
Protected Attributes | |
| DtString | myAcceptedExtension |
Static Protected Attributes | |
| static std::list< DtString > * | myExtensions |
DtReaderWriterFileExtensible is a ReaderWriteFile who's exact name is determined at runtime as defined by the extension.
For example, if your defined extension is b-have, then this will load lifeform-b-have.sysdef if it exists, and if it doesn't, then it would load lifeform.sysdef.
default constructor
| DtReaderWriterFileExtensible::DtReaderWriterFileExtensible | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
real constructor
| DtReaderWriterFileExtensible::DtReaderWriterFileExtensible | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtReaderWriterFileExtensible::DtReaderWriterFileExtensible | ( | const DtString & | name, |
| const DtReaderWriterFileExtensible & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtReaderWriterFileExtensible::DtReaderWriterFileExtensible | ( | const DtSymbolString & | name, |
| const DtReaderWriterFileExtensible & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| virtual DtReaderWriterFileExtensible::~DtReaderWriterFileExtensible | ( | ) | [virtual] |
destructor
| DtReaderWriterFileExtensible& DtReaderWriterFileExtensible::operator= | ( | const DtReaderWriterFileExtensible & | orig | ) |
assignment operator
| DtReaderWriterFileExtensible& DtReaderWriterFileExtensible::operator= | ( | const DtReaderWriterFile & | orig | ) |
assignment operator
Reimplemented from DtReaderWriterFile.
| DtReaderWriterFileExtensible& DtReaderWriterFileExtensible::operator= | ( | const DtFilename & | orig | ) |
Reimplemented from DtReaderWriterFile.
| virtual void DtReaderWriterFileExtensible::loadFile | ( | const DtFilename & | searchPath, |
| const DtVariableBindingsList & | variableBindings, | ||
| DtlObjStringMap * | commentMap = NULL |
||
| ) | [virtual] |
Reimplemented from DtReaderWriterFile.
| virtual void DtReaderWriterFileExtensible::substitute | ( | const DtVariableBindingsList & | variableBindings | ) | [virtual] |
Substitutes any variables in the list to variable substituted filename.
Reimplemented from DtReaderWriterFile.
| static std::list<DtString>* DtReaderWriterFileExtensible::getExtensionList | ( | ) | [static] |
Get the list of extensions currently accepted.
This can be modified so you may add, remove, or reorder the extensions. Be careful with doing this on a separate thread however, because this is not threadsafe.
| static void DtReaderWriterFileExtensible::addExtension | ( | DtString | ) | [static] |
Add a new extension to the back of the line.
The extensions added last are considered more important than the extensions added first.
std::list<DtString>* DtReaderWriterFileExtensible::myExtensions [static, protected] |