VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtRwIntegerAttributeList Class Reference

class DtRwIntegerAttributeList:

Instances of DtRwIntegerAttributeList are lists of DtRwIntegerAttributes.

Inheritance diagram for DtRwIntegerAttributeList:
Inheritance graph
[legend]

Public Member Functions

 DtRwIntegerAttributeList (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwIntegerAttributeList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwIntegerAttributeList (const DtRwIntegerAttributeList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
DtRwIntegerAttributeList & operator= (const DtRwIntegerAttributeList &orig)
 
DtRwIntegerAttributeList & operator= (const std::map< DtString, int > &orig)
 
virtual ~DtRwIntegerAttributeList () override
 
virtual DtRwIntegerAttributeList * clone (DtReaderWriterRegistry *parentRegistry=NULL)
 
virtual bool operator== (const DtRwIntegerAttributeList &rhs) const
 
virtual void emptyList ()
 
virtual void copyList (const DtRwIntegerAttributeList &orig)
 
virtual DtRwIntegerAttribute * addIntegerAttribute (const DtRwIntegerAttribute &integerAttribute)
 
virtual const
DtRwIntegerAttribute * 
findIntegerAttribute (const DtRwIntegerAttribute &attribToFind) const
 
virtual const char * readerWriterType () const override
 
virtual const char * xmlType () const override
 
virtual std::map< int, DtString > toStdIntMap () const
 
virtual std::map< DtString, int > toStdStringMap () const
 
virtual void setFromMap (const std::map< int, DtString > &)
 
virtual void setFromMap (const std::map< DtString, int > &)
 
- Public Member Functions inherited from DtRwList
 DtRwList ()
 
 DtRwList (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 
virtual ~DtRwList () override
 
const DtRwList & operator= (const DtRwList &orig)
 
virtual DtListItem * add (DtReaderWriter *data)
 
virtual DtListItem * addWithAlternateName (DtReaderWriter *data, const DtString &name)
 
virtual DtListItem * addToStart (DtReaderWriter *data)
 
virtual DtListItem * addToEnd (DtReaderWriter *data)
 
virtual void * remove (DtReaderWriter *data, DtListItem *item)
 
virtual DtlObjPtr getLocalData (DtlObjPtr args)
 
virtual void getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) override
 
virtual void getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) override
 
virtual DtListItem * addBefore (DtReaderWriter *data, DtReaderWriter *before)
 
virtual DtListItem * addAfter (DtReaderWriter *data, DtReaderWriter *after)
 
virtual void removeAll ()
 
virtual void removeAndDeleteAll ()
 
virtual void reset () override
 
bool operator== (const DtRwList &rhs) const
 
bool operator!= (const DtRwList &rhs) const
 
virtual void populateList (boost::function< void(DtReaderWriter *)> addFunction, DtEnvironmentSP env, DtEnvValueSP node, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &bindings)
 
virtual void populateListByType (boost::function< void(DtReaderWriter *)> addFunction, DtEnvironmentSP env, DtEnvValueSP node, const DtString &bindingType, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &bindings)
 
 DtRwList (const DtString &name, const DtRwList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtRwList (const DtSymbolString &name, const DtRwList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
virtual DtListItem * addBefore (DtReaderWriter *data, const DtString &before)
 
virtual DtListItem * addBefore (DtReaderWriter *data, const DtSymbolString &before)
 
virtual DtListItem * addAfter (DtReaderWriter *data, const DtString &after)
 
virtual DtListItem * addAfter (DtReaderWriter *data, const DtSymbolString &after)
 
virtual void putData (DtEnvironmentSP, DtEnvValueSP parent) const override
 
virtual void getData (const DtEnvironmentSP, const DtEnvValueSP value, const DtReaderWriter::SearchPaths &searchPaths=DtReaderWriter::SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) override
 
virtual std::set< DtString > supportedXmlTypes () const
 
- Public Member Functions inherited from DtReaderWriter
 DtReaderWriter ()
 
 DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL)
 
const DtReaderWriter & operator= (const DtReaderWriter &orig)
 
bool operator== (const DtReaderWriter &) const
 
bool operator!= (const DtReaderWriter &rhs) const
 
virtual ~DtReaderWriter ()
 
virtual void putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual void postPutSelf ()
 
virtual void prePutSelf ()
 
virtual void postGetSelf ()
 
virtual void preGetSelf ()
 
virtual void writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual DtSymbolString name () const
 
virtual void addAlias (const DtSymbolString &alias)
 
virtual void addAlias (const DtString &alias)
 
virtual bool hasAlias (const DtSymbolString &alias)
 
virtual const aliasContainer & aliases () const
 
virtual void setReadonly (bool flag)
 
bool isReadonly () const
 
virtual int alignment () const
 
virtual bool variableIsBound () const
 
virtual void unbindVariable ()
 
virtual void setName (const DtString &)
 
virtual DtString prettyPrint () const
 
std::string debugText () const
 
virtual void bindVariables (DtVariableBindingsList variableBindings)
 
virtual std::list
< DtVariableNameType > 
unboundVariables () const
 
bool invalid () const
 
virtual bool hasChild (const DtReaderWriter *p) const
 
virtual bool hasVariableReference () const
 
virtual void bindLocalVariables (const DtVariableBindingsList &variableBindings)
 
virtual void recordUpdateTime () const
 
virtual bool changedSinceLastChecked ()
 
virtual bool peekChangedSinceLastChecked () const
 
virtual void putData (std::string &fp, int indentLevel=0)
 
virtual void setValueSpecified (bool specified, bool recurse=false)
 
virtual bool valueSpecified () const
 
virtual bool isVariableReference () const
 
virtual void setIsVariableReference (bool value)
 
virtual void clearAllVariableReferenceFlags ()
 
virtual DtSymbolString variableName () const
 
virtual void setVariableName (const DtSymbolString variableName)
 
virtual const DtReaderWriter * defaultRWValue () const
 
virtual DtReaderWriter * defaultRWValue ()
 
virtual void setDefaultRWValue (DtReaderWriter *)
 
virtual bool checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 
const DtReaderWriterRegistry & registry () const
 
DtReaderWriterRegistry & registry ()
 
virtual DtPropertyInterface * property ()
 
virtual const DtPropertyInterface * property () const
 
virtual DtString toXml () const
 
virtual DtRwVariableBindings * generateVariableBindings () const
 
virtual bool toXml (const DtFilename &) const
 
virtual bool fromXml (const DtString &)
 
virtual bool fromXmlFile (const DtFilename &)
 
virtual void putSelf (DtEnvironmentSP, DtEnvValueSP parent) const
 
virtual void putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const
 
virtual void unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings)
 
virtual void getVariableReference (DtEnvironmentSP, DtEnvValueSP value)
 

Static Public Member Functions

static const char * theXmlType ()
 
- Static Public Member Functions inherited from DtRwList
static const char * theXmlType ()
 
- Static Public Member Functions inherited from DtReaderWriter
static void putIndent (std::string &fp, int indentLevel)
 
static const
DtVariableBindingsList & 
nullVariableReference ()
 
static void setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData)
 
static void setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData)
 
static void setPutIndent (bool)
 
static bool putIndent ()
 
static const char * theXmlType ()
 
static const DtFilename & appPath ()
 
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 
static void createReaderWriterFactory ()
 
static void cleanupFactory ()
 
static DtReaderWriterFactory * factory ()
 
static void setOutputStream (DtOutputStream *stream)
 
static DtOutputStream & outputStream ()
 
static DtReaderWriter * createFromXmlFile (const DtFilename &, bool createAsProperty=false)
 
static DtReaderWriter * createFromXml (const DtString &, bool createAsProperty=false)
 
static DtReaderWriter * createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 

Protected Member Functions

 DtRwIntegerAttributeList ()
 
virtual DtRwIntegerAttribute * addIntegerAttribute (DtRwIntegerAttribute *const integerAttribute)
 
virtual DtlObjPtr getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override
 
- Protected Member Functions inherited from DtRwList
virtual DtListItem * addBefore (DtReaderWriter *data, DtListItem *before)
 
virtual DtListItem * addAfter (DtReaderWriter *data, DtListItem *after)
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 

Additional Inherited Members

- Public Types inherited from DtReaderWriter
typedef std::vector
< DtSymbolString > 
aliasContainer
 
typedef std::vector
< DtSymbolString >::iterator 
aliasIter
 
typedef std::vector
< DtSymbolString >
::const_iterator 
aliasConstIter
 
typedef std::vector< DtFilename > SearchPaths
 
typedef std::pair
< DtSymbolString, DtString > 
DtVariableNameType
 
typedef DtReaderWriterFactory *(* DtReaderWriterFactoryCreatorFcn )()
 
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
 
DtReaderWriterRegistry myRegistry
 
DtReaderWriterRegistry * myParentRegistry
 
bool myValueSpecified
 
bool myReadOnlyFlag
 
bool myIsVariableReference
 
DtSymbolString myVariableName
 
bool myVariableIsBound
 
DtReaderWriter * myDefaultValue
 
aliasContainer myAliases
 
bool myInvalid
 
bool myChangedFlag
 
- Static Protected Attributes inherited from DtReaderWriter
static DtString theUnspecifiedValue
 
static DtGetSelfCallbackInfo thePostGetSelfCallback
 
static DtPutSelfCallbackInfo thePrePutSelfCallback
 
static const DtVariableBindingsList theEmptyVariableBindingsList
 
static bool theCreatorFcnSet
 
static DtReaderWriterFactory * theFactory
 
static
DtReaderWriterFactoryCreatorFcn 
theFactoryCreatorFcn
 
static bool thePutIndent
 
static DtOutputStream * theOutputStream
 

Constructor & Destructor Documentation

DtRwIntegerAttributeList::DtRwIntegerAttributeList ( )
protected

default constructor

DtRwIntegerAttributeList::DtRwIntegerAttributeList ( const DtString &  name,
DtReaderWriterRegistry *  parentRegistry = NULL 
)

constructor

DtRwIntegerAttributeList::DtRwIntegerAttributeList ( const DtSymbolString &  name,
DtReaderWriterRegistry *  parentRegistry = NULL 
)
DtRwIntegerAttributeList::DtRwIntegerAttributeList ( const DtRwIntegerAttributeList &  orig,
DtReaderWriterRegistry *  parentRegistry = NULL 
)

copy constructor

virtual DtRwIntegerAttributeList::~DtRwIntegerAttributeList ( )
overridevirtual

destructor

Member Function Documentation

DtRwIntegerAttributeList& DtRwIntegerAttributeList::operator= ( const DtRwIntegerAttributeList &  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.

DtRwIntegerAttributeList& DtRwIntegerAttributeList::operator= ( const std::map< DtString, int > &  orig)
virtual DtRwIntegerAttributeList* DtRwIntegerAttributeList::clone ( DtReaderWriterRegistry *  parentRegistry = NULL)
virtual
virtual bool DtRwIntegerAttributeList::operator== ( const DtRwIntegerAttributeList &  rhs) const
virtual
Returns
True if both lists contain equivalent items.
Note
Order is disregarded.
virtual void DtRwIntegerAttributeList::emptyList ( )
virtual

Removes all integer attributes from the list, and destroys them.

virtual void DtRwIntegerAttributeList::copyList ( const DtRwIntegerAttributeList &  orig)
virtual
virtual DtRwIntegerAttribute* DtRwIntegerAttributeList::addIntegerAttribute ( const DtRwIntegerAttribute &  integerAttribute)
virtual
virtual const DtRwIntegerAttribute* DtRwIntegerAttributeList::findIntegerAttribute ( const DtRwIntegerAttribute &  attribToFind) const
virtual

Returns a pointer to an attribute on this list that is equal to the one passed in. If none are equal, NULL is returned.

virtual const char* DtRwIntegerAttributeList::readerWriterType ( ) const
overridevirtual

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.

static const char* DtRwIntegerAttributeList::theXmlType ( )
static

The type that is used when archiving to an XML stream.

virtual const char* DtRwIntegerAttributeList::xmlType ( ) const
inlineoverridevirtual

Routines to archive/dearchive from an XML Environment.

Reimplemented from DtRwList.

References DtRwList::theXmlType().

virtual std::map<int, DtString> DtRwIntegerAttributeList::toStdIntMap ( ) const
virtual

std map convenience routines

virtual std::map<DtString, int> DtRwIntegerAttributeList::toStdStringMap ( ) const
virtual

std map convenience routines

virtual void DtRwIntegerAttributeList::setFromMap ( const std::map< int, DtString > &  )
virtual

std map convenience routines

virtual void DtRwIntegerAttributeList::setFromMap ( const std::map< DtString, int > &  )
virtual

std map convenience routines

virtual DtRwIntegerAttribute* DtRwIntegerAttributeList::addIntegerAttribute ( DtRwIntegerAttribute *const  integerAttribute)
protectedvirtual
virtual DtlObjPtr DtRwIntegerAttributeList::getData ( DtlObjPtr  args,
const DtReaderWriter::SearchPaths &  searchPaths,
const DtVariableBindingsList &  variableBindings 
)
overrideprotectedvirtual

Constructs a DtRwIntegerAttribute item, retrieves it from the mtl stream, and then adds it to the list.

Implements DtRwList.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)