![]() |
VR-Forces 4.0.4 Class Documentation
|
Public Member Functions | |
| DtStringList () | |
| default constructor | |
| virtual | ~DtStringList () |
| destructor | |
| DtStringList (const DtStringList &orig) | |
| copy constructor | |
| DtStringList & | operator= (const DtStringList &orig) |
| assignment operator | |
| int | operator== (const DtStringList &other) const |
| equivalence operators | |
| int | operator!= (const DtStringList &other) const |
| virtual void | setNumStrings (int num) |
| Set/Get number of strings. | |
| virtual int | numStrings () const |
| virtual bool | setString (int index, const DtString &str) |
| Set index'th string. | |
| virtual const DtString & | string (int index, bool *valid=0) const |
| Get index'th object designator. | |
| virtual void | printData () const |
| Print data. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| virtual void | setFromNet (const void *netRep, int length) |
| Set from network representation. | |
| virtual const void * | netRep (int *size=0) const |
| Returns network representation, fills size with size of netRep. | |
| virtual int | netSize () const |
| Returns size of network representation. | |
Protected Attributes | |
| int | myNumberOfStrings |
| DtString * | myStrings |
| DtString | myEmptyString |
| void * | myNetRep |
default constructor
| virtual DtStringList::~DtStringList | ( | ) | [virtual] |
destructor
| DtStringList::DtStringList | ( | const DtStringList & | orig | ) |
copy constructor
| DtStringList& DtStringList::operator= | ( | const DtStringList & | orig | ) |
assignment operator
| int DtStringList::operator== | ( | const DtStringList & | other | ) | const |
equivalence operators
| int DtStringList::operator!= | ( | const DtStringList & | other | ) | const |
| virtual void DtStringList::setNumStrings | ( | int | num | ) | [virtual] |
Set/Get number of strings.
Setting to a number lower than the current number will remove trailing strings from the list.
| virtual int DtStringList::numStrings | ( | ) | const [virtual] |
| virtual bool DtStringList::setString | ( | int | index, |
| const DtString & | str | ||
| ) | [virtual] |
Set index'th string.
| virtual const DtString& DtStringList::string | ( | int | index, |
| bool * | valid = 0 |
||
| ) | const [virtual] |
Get index'th object designator.
Set valid to false if bad index, true otherwise.
| virtual void DtStringList::printData | ( | ) | const [virtual] |
Print data.
| virtual void DtStringList::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
| virtual void DtStringList::setFromNet | ( | const void * | netRep, |
| int | length | ||
| ) | [virtual] |
Set from network representation.
| virtual const void* DtStringList::netRep | ( | int * | size = 0 | ) | const [virtual] |
Returns network representation, fills size with size of netRep.
Return value is pointer to internal object with same lifetime as this. Do not delete.
| virtual int DtStringList::netSize | ( | ) | const [virtual] |
Returns size of network representation.
int DtStringList::myNumberOfStrings [protected] |
DtString* DtStringList::myStrings [protected] |
DtString DtStringList::myEmptyString [protected] |
void* DtStringList::myNetRep [protected] |