tdaq-develop-2025-02-12
|
Classes | |
struct | BitMapInfo |
< uses dataChoices CSV fields if type is TYPE_BITMAP_DATA More... | |
Public Member Functions | |
TableViewColumnInfo (const std::string &type, const std::string &name, const std::string &storageName, const std::string &dataType, const std::string *defaultValue, const std::string &dataChoicesCSV, const std::string *minValue, const std::string *maxValue, std::string *capturedExceptionString) | |
TableViewColumnInfo (const TableViewColumnInfo &c) | |
copy constructor because of bitmap pointer | |
TableViewColumnInfo & | operator= (const TableViewColumnInfo &c) |
assignment operator because of bitmap pointer | |
const std::string & | getType (void) const |
const std::string & | getName (void) const |
const std::string & | getStorageName (void) const |
const std::string & | getDataType (void) const |
const std::string & | getDefaultValue (void) const |
const std::string & | getMinValue (void) const |
const std::string & | getMaxValue (void) const |
const std::vector< std::string > & | getDataChoices (void) const |
const BitMapInfo & | getBitMapInfo (void) const |
uses dataChoices CSV fields if type is TYPE_BITMAP_DATA More... | |
bool | isChildLink (void) const |
bool | isChildLinkUID (void) const |
bool | isChildLinkGroupID (void) const |
bool | isGroupID (void) const |
bool | isUID (void) const |
isUID | |
bool | isBoolType (void) const |
TODO check if min and max values need a function called getallminmaxforgui or something like that for someplace. More... | |
bool | isNumberDataType (void) const |
isNumberDataType | |
std::string | getChildLinkIndex (void) const |
getChildLinkIndex | |
Static Public Member Functions | |
static const std::string & | getDefaultDefaultValue (const std::string &type, const std::string &dataType) |
static const std::string & | getMinDefaultValue (const std::string &dataType) |
function to get min default value | |
static const std::string & | getMaxDefaultValue (const std::string &dataType) |
function to get max default value | |
static std::vector< std::string > | getAllTypesForGUI (void) |
static std::map< std::pair< std::string, std::string >, std::string > | getAllDefaultsForGUI (void) |
map of datatype,type to default value | |
static std::vector< std::string > | getAllDataTypesForGUI (void) |
static bool | isChildLink (const std::string &type) |
Static Public Attributes | |
static const std::string | TYPE_UID = "UID" |
NOTE: Do NOT put '-' in static const TYPEs because it will mess up javascript handling in the web gui. | |
static const std::string | TYPE_DATA = "Data" |
static const std::string | TYPE_UNIQUE_DATA = "UniqueData" |
static const std::string | TYPE_UNIQUE_GROUP_DATA = "UniqueGroupData" |
static const std::string | TYPE_MULTILINE_DATA = "MultilineData" |
static const std::string | TYPE_FIXED_CHOICE_DATA = "FixedChoiceData" |
static const std::string | TYPE_BITMAP_DATA = "BitMap" |
static const std::string | TYPE_ON_OFF = "OnOff" |
static const std::string | TYPE_TRUE_FALSE = "TrueFalse" |
static const std::string | TYPE_YES_NO = "YesNo" |
static const std::string | TYPE_COMMENT = "Comment" |
static const std::string | TYPE_AUTHOR = "Author" |
static const std::string | TYPE_TIMESTAMP = "Timestamp" |
static const std::string | TYPE_START_CHILD_LINK = "ChildLink" |
static const std::string | TYPE_START_CHILD_LINK_UID = "ChildLinkUID" |
static const std::string | TYPE_START_CHILD_LINK_GROUP_ID = "ChildLinkGroupID" |
static const std::string | TYPE_START_GROUP_ID = "GroupID" |
static const std::string | DATATYPE_NUMBER = "NUMBER" |
static const std::string | DATATYPE_STRING = "STRING" |
static const std::string | DATATYPE_TIME = "TIMESTAMP WITH TIMEZONE" |
static const std::string | TYPE_VALUE_YES = "Yes" |
static const std::string | TYPE_VALUE_NO = "No" |
static const std::string | TYPE_VALUE_TRUE = "True" |
static const std::string | TYPE_VALUE_FALSE = "False" |
static const std::string | TYPE_VALUE_ON = "On" |
static const std::string | TYPE_VALUE_OFF = "Off" |
static const std::string | DATATYPE_STRING_DEFAULT = "DEFAULT" |
static const std::string | DATATYPE_COMMENT_DEFAULT = "No Comment" |
static const std::string | DATATYPE_BOOL_DEFAULT = "0" |
static const std::string | DATATYPE_NUMBER_DEFAULT = "0" |
static const std::string | DATATYPE_NUMBER_MIN_DEFAULT = "" |
static const std::string | DATATYPE_NUMBER_MAX_DEFAULT = "" |
static const std::string | DATATYPE_TIME_DEFAULT = "0" |
static const std::string | DATATYPE_LINK_DEFAULT = "NO_LINK" |
static const std::string | COL_NAME_STATUS = "Status" |
static const std::string | COL_NAME_ENABLED = "Enabled" |
static const std::string | COL_NAME_PRIORITY = "Priority" |
static const std::string | COL_NAME_COMMENT = "CommentDescription" |
static const std::string | COL_NAME_AUTHOR = "Author" |
static const std::string | COL_NAME_CREATION = "RecordInsertionTime" |
Protected Attributes | |
const std::string | type_ |
const std::string | name_ |
const std::string | storageName_ |
const std::string | dataType_ |
const std::string | defaultValue_ |
const std::vector< std::string > | dataChoices_ |
const std::string | minValue_ |
const std::string | maxValue_ |
BitMapInfo * | bitMapInfoP_ |
Definition at line 12 of file TableViewColumnInfo.h.
TableViewColumnInfo::TableViewColumnInfo | ( | const std::string & | type, |
const std::string & | name, | ||
const std::string & | storageName, | ||
const std::string & | dataType, | ||
const std::string * | defaultValue, | ||
const std::string & | dataChoicesCSV, | ||
const std::string * | minValue, | ||
const std::string * | maxValue, | ||
std::string * | capturedExceptionString | ||
) |
TableViewColumnInfo if(capturedExceptionString) *capturedExceptionString = ""; //indicates no error found if(!capturedExceptionString) then exception is thrown on error
Definition at line 74 of file TableViewColumnInfo.cc.
const TableViewColumnInfo::BitMapInfo & TableViewColumnInfo::getBitMapInfo | ( | void | ) | const |
uses dataChoices CSV fields if type is TYPE_BITMAP_DATA
getBitMapInfo uses dataChoices CSV fields if type is TYPE_BITMAP_DATA
Definition at line 606 of file TableViewColumnInfo.cc.
bool TableViewColumnInfo::isBoolType | ( | void | ) | const |
TODO check if min and max values need a function called getallminmaxforgui or something like that for someplace.
isBoolType
Definition at line 573 of file TableViewColumnInfo.cc.
|
static |
isChildLink note: TYPE_START_CHILD_LINK index may be a subset of UID and GROUP_ID so don't allow alpha character immediately after
Definition at line 624 of file TableViewColumnInfo.cc.
bool TableViewColumnInfo::isChildLink | ( | void | ) | const |
isChildLink note: TYPE_START_CHILD_LINK index may be a subset of UID and GROUP_ID so don't allow alpha character immediately after
Definition at line 635 of file TableViewColumnInfo.cc.
bool TableViewColumnInfo::isChildLinkGroupID | ( | void | ) | const |
isChildLinkGroupID note: TYPE_START_CHILD_LINK index may be a subset of UID and GROUP_ID so don't allow alpha character immediately after
Definition at line 657 of file TableViewColumnInfo.cc.
bool TableViewColumnInfo::isChildLinkUID | ( | void | ) | const |
isChildLinkUID note: TYPE_START_CHILD_LINK index may be a subset of UID and GROUP_ID so don't allow alpha character immediately after
Definition at line 646 of file TableViewColumnInfo.cc.
bool TableViewColumnInfo::isGroupID | ( | void | ) | const |
isGroupID note: TYPE_START_CHILD_LINK index may be a subset of UID and GROUP_ID so don't allow alpha character immediately after in group index
Definition at line 668 of file TableViewColumnInfo.cc.
|
static |
NOTE: Do NOT put '-' in static const TYPEs because it will mess up javascript handling in the web gui
Definition at line 74 of file TableViewColumnInfo.h.