OpenLexocad  27.1
Base::PropertyNameTool Class Reference

#include <PropertyNameTool.h>

Static Public Member Functions

static std::string getPNameAsString (const Base::PName n)
 Returns the string representation of the property name index. More...
 
static Base::PName getPNameFromString (const std::string &n)
 Returns the index for the property name string. More...
 
static void init ()
 ADD ALL NEW PROPERTY NAMES HERE... More...
 
static void addUserProperty (unsigned int index, const std::string &name)
 Adds a user defined property name by index and name. Index must be greater PName::USER (10000) More...
 

Static Public Attributes

static unsigned int userNameCnt
 User name count. More...
 

Detailed Description

This class is used to store all property names and their indices in a central location for fast access and low memory footprint.

Member Function Documentation

◆ addUserProperty()

static void Base::PropertyNameTool::addUserProperty ( unsigned int  index,
const std::string &  name 
)
static

Adds a user defined property name by index and name. Index must be greater PName::USER (10000)

◆ getPNameAsString()

static std::string Base::PropertyNameTool::getPNameAsString ( const Base::PName  n)
static

Returns the string representation of the property name index.

◆ getPNameFromString()

static Base::PName Base::PropertyNameTool::getPNameFromString ( const std::string &  n)
static

Returns the index for the property name string.

◆ init()

static void Base::PropertyNameTool::init ( )
static

ADD ALL NEW PROPERTY NAMES HERE...

Member Data Documentation

◆ userNameCnt

unsigned int Base::PropertyNameTool::userNameCnt
static

User name count.


The documentation for this class was generated from the following file: