![]() |
VR-Forces 4.0.4 Class Documentation
|
Class which holds a list of string key and string value pairs. More...

Public Member Functions | |
| DtRwKeyValueList () | |
| default constructor | |
| DtRwKeyValueList (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| constructor | |
| DtRwKeyValueList (const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| virtual | ~DtRwKeyValueList () |
| destructor | |
| DtRwKeyValueList (const DtRwKeyValueList &orig, DtReaderWriterRegistry *const parentRegistry=NULL) | |
| copy constructor | |
| DtRwKeyValueList & | operator= (const DtRwKeyValueList &orig) |
| assignment operator | |
| virtual void | add (const DtString &key, const DtString &value) |
| Adds a key value pair to the list. | |
| virtual void | remove (const DtString &key) |
| Removes a key value pair from the list, based on the provided key. | |
| virtual void | clear () |
| Clears the entire list. Same as emptyList() | |
| virtual bool | contains (const DtString &key) const |
| virtual DtString | find (const DtString &key) const |
| virtual std::map< DtString, DtString > | convertToMap () const |
| virtual void | setFromMap (const std::map< DtString, DtString > sourceMap) |
| Clears the contents of this list, and sets new contents from the values in the std::map. | |
Class which holds a list of string key and string value pairs.
This class is a DtReaderWriter, and also has associated DtBufferSerialize methods available.
default constructor
| DtRwKeyValueList::DtRwKeyValueList | ( | const DtString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
constructor
| DtRwKeyValueList::DtRwKeyValueList | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
| virtual DtRwKeyValueList::~DtRwKeyValueList | ( | ) | [virtual] |
destructor
| DtRwKeyValueList::DtRwKeyValueList | ( | const DtRwKeyValueList & | orig, |
| DtReaderWriterRegistry *const | parentRegistry = NULL |
||
| ) |
copy constructor
| DtRwKeyValueList& DtRwKeyValueList::operator= | ( | const DtRwKeyValueList & | orig | ) |
assignment operator
| virtual void DtRwKeyValueList::add | ( | const DtString & | key, |
| const DtString & | value | ||
| ) | [virtual] |
Adds a key value pair to the list.
If a previous value with this key exists, it is removed.
| virtual void DtRwKeyValueList::remove | ( | const DtString & | key | ) | [virtual] |
Removes a key value pair from the list, based on the provided key.
| virtual void DtRwKeyValueList::clear | ( | ) | [virtual] |
Clears the entire list. Same as emptyList()
| virtual bool DtRwKeyValueList::contains | ( | const DtString & | key | ) | const [virtual] |
| virtual DtString DtRwKeyValueList::find | ( | const DtString & | key | ) | const [virtual] |
| virtual std::map<DtString, DtString> DtRwKeyValueList::convertToMap | ( | ) | const [virtual] |
| virtual void DtRwKeyValueList::setFromMap | ( | const std::map< DtString, DtString > | sourceMap | ) | [virtual] |
Clears the contents of this list, and sets new contents from the values in the std::map.
All values are copied from the map.