VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtModelSet Class Reference
Inheritance diagram for DtModelSet:
Inheritance graph
[legend]

List of all members.

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
DtModelSetoperator= (const DtModelSet &orig)
 assignment operator
virtual bool load (const DtFilename &)
virtual bool save (const DtFilename &)
virtual DtModelSetEntryfind (const DtObjectType &) const
virtual DtModelSetEntryfindMatchingPattern (const DtObjectType &) const
virtual DtModelSetEntryfindByUniqueID (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 DtModelSetEntryaddModel (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 DtModelSetcreate (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

Constructor & Destructor Documentation

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


Member Function Documentation

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]

Returns object type for item matching label.

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.


Member Data Documentation

Referenced by version().


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)