![]() |
VR-Forces 5.0.3 Developer's Guide
|
vrlink
Lookup table for role handles and display text.
Public Types | |
| typedef std::map< std::string, std::string > | Map |
Public Member Functions | |
| DtSubordinateFunctionTable () | |
| virtual | ~DtSubordinateFunctionTable () |
| DtSubordinateFunctionTable (const DtSubordinateFunctionTable &orig) | |
| const DtSubordinateFunctionTable & | operator= (const DtSubordinateFunctionTable &orig) |
| virtual bool | addEntry (const std::string &sHandle, const std::string &sText, bool bOverwrite=true) |
| virtual void | clear () |
| virtual const DtFilename & | filename () const |
| virtual bool | load (const DtFilename &) |
| virtual void | mergeEntries (const DtSubordinateFunctionTable::Map &entries) |
| virtual bool | save () const |
| virtual bool | save (const DtFilename &) |
| virtual bool | save (const DtFilename &) const |
| virtual const DtSubordinateFunctionTable::Map & | table () const |
Protected Attributes | |
| DtFilename | myFilename |
| Map | myMap |
| typedef std::map<std::string, std::string> DtSubordinateFunctionTable::Map |
| DtSubordinateFunctionTable::DtSubordinateFunctionTable | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtSubordinateFunctionTable::DtSubordinateFunctionTable | ( | const DtSubordinateFunctionTable & | orig | ) |
Copy Constructor.
| const DtSubordinateFunctionTable& DtSubordinateFunctionTable::operator= | ( | const DtSubordinateFunctionTable & | orig | ) |
Assignment Operator.
|
virtual |
Add the given handle and text. If overwrite is true, duplicate handle:text pairs will be overwritten and return value will be true If overwrite is false and duplicate handle is found, no change will be made and the return will be false.
|
virtual |
empties the table
|
virtual |
returns myFilename
|
virtual |
Loads csv file. Format is title line and one line for each role handle pair. No quotation marks HANDLE,TEXT MVR1, Maneuver 1.
|
virtual |
Merge the provided entries into this table, overwriting duplicates.
|
virtual |
Saves to file that was successfully loaded. If not file was loaded does not save.
|
virtual |
Saves to specified file.
|
virtual |
|
virtual |
accessor for iteration
|
protected |
filename for load or save
|
protected |
handle:display_text pairs, e.g. <"MVR1", "Maneuver 1">