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

This file declares DtComponentAttachmentConfigurationEntry. More...

Inheritance diagram for DtRemoteConfigurationList:
Inheritance graph
[legend]

List of all members.

Public Types

typedef
DtRemoteConfigurationList *(* 
CreatorFcn )(const DtString &name, DtReaderWriterRegistry *parentRegistry)
typedef std::map< std::string,
DtRemoteConfigurationEntry * > 
ConfigMap
 Object Type list.
typedef ConfigMap::iterator ConfigIterator
 Object Type list.
typedef ConfigMap::const_iterator const_ConfigIterator
 Object Type list.

Public Member Functions

 DtRemoteConfigurationList ()
 CTOR.
 DtRemoteConfigurationList (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 CTOR.
 DtRemoteConfigurationList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 CTOR.
 DtRemoteConfigurationList (const DtString &name, const DtRemoteConfigurationList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 Copy constructor.
 DtRemoteConfigurationList (const DtSymbolString &name, const DtRemoteConfigurationList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 Copy constructor.
virtual ~DtRemoteConfigurationList ()
 Destructor.
const DtRemoteConfigurationListoperator= (const DtRemoteConfigurationList &orig)
 Assignment operator.
const DtRemoteConfigurationListoperator+= (const DtRemoteConfigurationList &orig)
 operator+= has same behavior as append.
virtual void add (DtRemoteConfigurationEntry *pEntry)
 Add an entry to the map.
virtual void append (const DtRemoteConfigurationList &orig)
 append: add the contents of orig to this map. Duplicate keys will override originals.
virtual bool appendFile (const DtFilename &fname, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 appendFile: add the contents the file to this map. Duplicate keys will override originals.
virtual void clear ()
 empty the map
unsigned size () const
 returns number of entries in the map
virtual void copyMap (const DtRemoteConfigurationList &orig)
 copy the map
virtual bool readFile (const DtFilename &fname, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 Loads the file.
DtRemoteConfigurationList::ConfigIterator begin ()
 Returns an iterator pointing to the first item in the map.
DtRemoteConfigurationList::const_ConfigIterator begin () const
 Returns an iterator pointing to the first item in the map.
DtRemoteConfigurationList::ConfigMapconfigurationMap ()
 returns the map
const
DtRemoteConfigurationList::ConfigMap
configurationMap () const
 returns the map
DtRemoteConfigurationEntry::CreatorFcn entryCreatorFcn () const
 factory function to create entries
void setEntryCreatorFcn (DtRemoteConfigurationEntry::CreatorFcn fcn)
 factory function to create entries
DtRemoteConfigurationList::ConfigIterator end ()
 Returns an iterator pointing to the first item in the map.
DtRemoteConfigurationList::const_ConfigIterator end () const
 Returns an iterator pointing to the first item in the map.
virtual void remove (DtRemoteConfigurationEntry *pEntry)
 Remove an entry from the map.
virtual void remove (const char *pKeyName)
 Remove an entry from the map.

Static Public Member Functions

static DtRemoteConfigurationListcreate (const DtString &name, DtReaderWriterRegistry *parentRegistry)

Protected Member Functions

virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 Override getData to parse out attachment entries.
virtual void putData (FILE *fp, int indentLevel=0)
 Deriving class overrides these to get/put class specific data.

Protected Attributes

ConfigMap myConfigMap
DtRemoteConfigurationEntry::CreatorFcn myEntryCreatorFcn

Detailed Description

This file declares DtComponentAttachmentConfigurationEntry.

DtRemoteConfigurationList


Member Typedef Documentation

Object Type list.

typedef ConfigMap::iterator DtRemoteConfigurationList::ConfigIterator

Object Type list.

typedef ConfigMap::const_iterator DtRemoteConfigurationList::const_ConfigIterator

Object Type list.


Constructor & Destructor Documentation

CTOR.

DtRemoteConfigurationList::DtRemoteConfigurationList ( const DtString name,
DtReaderWriterRegistry parentRegistry = NULL,
bool  readonly = false 
)

CTOR.

DtRemoteConfigurationList::DtRemoteConfigurationList ( const DtSymbolString name,
DtReaderWriterRegistry parentRegistry = NULL,
bool  readonly = false 
)

CTOR.

Copy constructor.

Copy constructor.

Destructor.


Member Function Documentation

const DtRemoteConfigurationList& DtRemoteConfigurationList::operator= ( const DtRemoteConfigurationList orig)

Assignment operator.

const DtRemoteConfigurationList& DtRemoteConfigurationList::operator+= ( const DtRemoteConfigurationList orig)

operator+= has same behavior as append.

virtual void DtRemoteConfigurationList::add ( DtRemoteConfigurationEntry pEntry) [virtual]

Add an entry to the map.

Adds the entry to the map. Assumes ownership of pEntry memory. Uses pEntry->keyName() to index. if (pEntry->keyName()) already exists, remove that instance and delete, then add pEntry.

Returns an iterator pointing to the first item in the map.

References myConfigMap.

Returns an iterator pointing to the first item in the map.

References myConfigMap.

virtual void DtRemoteConfigurationList::append ( const DtRemoteConfigurationList orig) [virtual]

append: add the contents of orig to this map. Duplicate keys will override originals.

virtual bool DtRemoteConfigurationList::appendFile ( const DtFilename &  fname,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [virtual]

appendFile: add the contents the file to this map. Duplicate keys will override originals.

virtual void DtRemoteConfigurationList::clear ( ) [virtual]

empty the map

returns the map

References myConfigMap.

returns the map

References myConfigMap.

unsigned DtRemoteConfigurationList::size ( ) const [inline]

returns number of entries in the map

References myConfigMap.

virtual void DtRemoteConfigurationList::copyMap ( const DtRemoteConfigurationList orig) [virtual]

copy the map

factory function to create entries

References myEntryCreatorFcn.

factory function to create entries

References myEntryCreatorFcn.

Returns an iterator pointing to the first item in the map.

References myConfigMap.

Returns an iterator pointing to the first item in the map.

References myConfigMap.

virtual bool DtRemoteConfigurationList::readFile ( const DtFilename &  fname,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [virtual]

Loads the file.

virtual void DtRemoteConfigurationList::remove ( DtRemoteConfigurationEntry pEntry) [virtual]

Remove an entry from the map.

virtual void DtRemoteConfigurationList::remove ( const char *  pKeyName) [virtual]

Remove an entry from the map.

static DtRemoteConfigurationList* DtRemoteConfigurationList::create ( const DtString name,
DtReaderWriterRegistry parentRegistry 
) [static]
virtual DtlObjPtr DtRemoteConfigurationList::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [protected, virtual]

Override getData to parse out attachment entries.

virtual void DtRemoteConfigurationList::putData ( FILE *  fp,
int  indentLevel = 0 
) [protected, virtual]

Deriving class overrides these to get/put class specific data.

Reimplemented from DtReaderWriter.


Member Data Documentation

Referenced by begin(), configurationMap(), end(), and size().


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)