![]() |
VR-Forces 4.10 Class Documentation
|
vrlink More...
Public Types | |
| typedef std::map< std::string, std::string > | Map |
Public Member Functions | |
| DtSubordinateFunctionTable () | |
| Constructor. More... | |
| virtual | ~DtSubordinateFunctionTable () |
| Destructor. More... | |
| DtSubordinateFunctionTable (const DtSubordinateFunctionTable &orig) | |
| Copy Constructor. More... | |
| const DtSubordinateFunctionTable & | operator= (const DtSubordinateFunctionTable &orig) |
| Assignment Operator. More... | |
| virtual bool | addEntry (const std::string &sHandle, const std::string &sText, bool bOverwrite=true) |
| Add the given handle and text. More... | |
| virtual void | clear () |
| empties the table More... | |
| virtual const DtFilename & | filename () const |
| returns myFilename More... | |
| virtual bool | load (const DtFilename &) |
| Loads csv file. More... | |
| virtual void | mergeEntries (const DtSubordinateFunctionTable::Map &entries) |
| Merge the provided entries into this table, overwriting duplicates. More... | |
| virtual bool | save () const |
| Saves to file that was successfully loaded. If not file was loaded does not save. More... | |
| virtual bool | save (const DtFilename &) |
| Saves to specified file. More... | |
| virtual bool | save (const DtFilename &) const |
| virtual const DtSubordinateFunctionTable::Map & | table () const |
| accessor for iteration More... | |
Protected Attributes | |
| DtFilename | myFilename |
| filename for load or save More... | |
| Map | myMap |
| handle:display_text pairs, e.g. <"MVR1", "Maneuver 1"> More... | |
vrlink
Lookup table for role handles and display text.
| 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">