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.
More...
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.
| DtSimulationObjectCategoryInformation::DtSimulationObjectCategoryInformation |
( |
| ) |
|
| virtual DtSimulationObjectCategoryInformation::~DtSimulationObjectCategoryInformation |
( |
| ) |
|
|
virtual |
| virtual bool DtSimulationObjectCategoryInformation::load |
( |
const DtFilename & |
, |
|
|
bool |
clear = false |
|
) |
| |
|
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 void DtSimulationObjectCategoryInformation::clear |
( |
| ) |
|
|
virtual |
Clears category information.
| virtual bool DtSimulationObjectCategoryInformation::save |
( |
const DtFilename & |
| ) |
|
|
virtual |
Saves category information to the given file.
| virtual void DtSimulationObjectCategoryInformation::addCategoryInformation |
( |
const DtString & |
, |
|
|
int |
rank = 100, |
|
|
bool |
topLevelTag = false, |
|
|
const DtString & |
iconFilename = "", |
|
|
bool |
visible = true, |
|
|
const DtString & |
displayName = "" |
|
) |
| |
|
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 void DtSimulationObjectCategoryInformation::removeCategoryInformation |
( |
const DtString & |
| ) |
|
|
virtual |
| virtual bool DtSimulationObjectCategoryInformation::hasCategory |
( |
const DtString & |
| ) |
const |
|
virtual |
Returns true if the category exists.
| virtual bool DtSimulationObjectCategoryInformation::isTopLevelTag |
( |
const DtString & |
cat | ) |
const |
|
virtual |
Returns true if this is a top level tag.
Returns category information for the given category.
| const Categories& DtSimulationObjectCategoryInformation::categories |
( |
| ) |
const |
|
inline |
Returns the category information as a map.
| static DtFilename DtSimulationObjectCategoryInformation::categoriesFilename |
( |
| ) |
|
|
static |
Accessors for global categories filename. Default is categories.csv.
| static void DtSimulationObjectCategoryInformation::setCategoriesFilename |
( |
const DtFilename & |
| ) |
|
|
static |
| Categories DtSimulationObjectCategoryInformation::myCategories |
|
protected |
The documentation for this class was generated from the following file: