![]() |
VR-Forces 5.0.2 Developer's Guide
|
The DtSimulationObjectCategoryInformation class is a class that will read the comma delimited category information file as well as provide access for adding, removing and saving informatiion.
Classes | |
| struct | CategoryInformation |
Public Types | |
| typedef std::map< DtString, CategoryInformation > | Categories |
Static Public Member Functions | |
| static DtFilename | categoriesFilename () |
| static void | setCategoriesFilename (const DtFilename &) |
Protected Attributes | |
| Categories | myCategories |
| typedef std::map<DtString, CategoryInformation> DtSimulationObjectCategoryInformation::Categories |
| DtSimulationObjectCategoryInformation::DtSimulationObjectCategoryInformation | ( | ) |
CTOR.
| DtSimulationObjectCategoryInformation::DtSimulationObjectCategoryInformation | ( | const DtSimulationObjectCategoryInformation & | ) |
|
virtual |
DTOR.
|
virtual |
Loads the given file. Will merge information read from the file with current information. If you want to load and then clear in the process of loading set the clear flag to true. Note that the first line of the file is assumed to be the columns of the data of the file.
|
virtual |
Clears category information.
|
virtual |
Saves category information to the given file.
|
virtual |
Adds a row of category information. If the information exists will overwrite. If displayName is empty, category name will be used for display (and possibly run through Qt translation). The displayName will not be – it will be taken as is.
|
virtual |
|
virtual |
Removes a category row.
Returns true if the category exists.
|
virtual |
Returns true if this is a top level tag.
|
virtual |
Returns category information for the given category.
|
inline |
Returns the category information as a map.
| DtSimulationObjectCategoryInformation& DtSimulationObjectCategoryInformation::operator= | ( | const DtSimulationObjectCategoryInformation & | ) |
| bool DtSimulationObjectCategoryInformation::operator== | ( | const DtSimulationObjectCategoryInformation & | ) | const |
|
inline |
|
static |
Accessors for global categories filename. Default is categories.csv.
|
static |
|
protected |