VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions
DtComponentSystemDescriptorList Class Reference

List of DtComponentSystemDescriptor instances. More...

Inheritance diagram for DtComponentSystemDescriptorList:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtComponentSystemDescriptorList (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
 constructor
 DtComponentSystemDescriptorList (const DtComponentSystemDescriptorList &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
DtComponentSystemDescriptorListoperator= (const DtComponentSystemDescriptorList &orig)
 Assignment operator; removes and deletes all entries on the left hand side - then clones all entries on the right side list, adding them to the left side list.
virtual ~DtComponentSystemDescriptorList ()
 destructor
virtual
DtComponentSystemDescriptorList
clone (DtReaderWriterRegistry *parentRegistry=0)
virtual const char * readerWriterType () const
 Used to supply a string type that this reader writer type is.
virtual void emptyList ()
 Removes all descriptors from the list, and destroys them.
virtual void copyList (const DtComponentSystemDescriptorList &orig)
virtual
DtComponentSystemDescriptor
addComponentSystemDescriptor (const DtComponentSystemDescriptor &descriptor)
 Copies the component descriptor and adds this copy to the list.
virtual
DtComponentSystemDescriptor
lookupComponentSystemDescriptor (const DtString &name) const

Protected Member Functions

 DtComponentSystemDescriptorList ()
 default constructor
virtual void addComponentSystemDescriptor (DtComponentSystemDescriptor *descriptor)
 Adds this component descriptor instance to the list. No copy is made.
virtual DtListItem * lookupComponentSystemDescriptorItem (const DtString &name) const
virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 This method must be overridden by a subclass.

Detailed Description

List of DtComponentSystemDescriptor instances.


Constructor & Destructor Documentation

default constructor

constructor

copy constructor

destructor


Member Function Documentation

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

Assignment operator; removes and deletes all entries on the left hand side - then clones all entries on the right side list, adding them to the left side list.

virtual const char* DtComponentSystemDescriptorList::readerWriterType ( ) const [virtual]

Used to supply a string type that this reader writer type is.

This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create

Reimplemented from DtRwList.

virtual void DtComponentSystemDescriptorList::emptyList ( ) [virtual]

Removes all descriptors from the list, and destroys them.

Copies the component descriptor and adds this copy to the list.

Returns:
The pointer to the new copy that was added to the list.

Adds this component descriptor instance to the list. No copy is made.

virtual DtListItem* DtComponentSystemDescriptorList::lookupComponentSystemDescriptorItem ( const DtString name) const [protected, virtual]
virtual DtlObjPtr DtComponentSystemDescriptorList::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [protected, virtual]

This method must be overridden by a subclass.

Within this method, new instances of the DtReaderWriter subclass that is being handled by this list must be created, and then retrieved from the mtl stream, using the getSelf member of that item.

Here is some sample code that could be used to implement a override of this class: (This is used in the DtRwIntegerList::getData() method)
 DtlObjPtr nameObj = DtcCar(args);
 DtRwInt* value = new DtRwInt(nameObj->pname());
 value->getSelf(args, searchPath, variableBindings);
 this->add(value);
 return DtcCdr(DtcCdr(args));

Implements DtRwList.


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)