VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
DtReaderWriterFileExtensible Class Reference

DtReaderWriterFileExtensible is a ReaderWriteFile who's exact name is determined at runtime as defined by the extension. More...

Inheritance diagram for DtReaderWriterFileExtensible:
Inheritance graph
[legend]

List of all members.

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)
DtReaderWriterFileExtensibleoperator= (const DtReaderWriterFileExtensible &orig)
 assignment operator
DtReaderWriterFileExtensibleoperator= (const DtReaderWriterFile &orig)
 assignment operator
DtReaderWriterFileExtensibleoperator= (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

Detailed Description

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.


Constructor & Destructor Documentation

default constructor

real constructor

copy constructor

destructor


Member Function Documentation

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.

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.

Add a new extension to the back of the line.

The extensions added last are considered more important than the extensions added first.


Member Data Documentation

std::list<DtString>* DtReaderWriterFileExtensible::myExtensions [static, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)