OpenM++ runtime library (libopenm)
openm::TypeDicRow Struct Reference

type_dic join to model_type_dic table row. More...

Inheritance diagram for openm::TypeDicRow:
Collaboration diagram for openm::TypeDicRow:

Public Member Functions

 TypeDicRow (int i_modelId, int i_typeId)
 create row with supplied unique key field values.
 
 TypeDicRow (void)
 create row with default empty key values.
 
bool isBool (void) const
 return true if model type is boolean (logical)
 
bool isString (void) const
 return true if model type is string (varchar)
 
bool isBigInt (void) const
 return true if model type is bigint (64 bit)
 
bool isInt (void) const
 return true if model type is integer (not float, string, boolean or bigint) More...
 
bool isFloat (void) const
 return true if model type is float (float, real, double or time)
 
bool isTime (void) const
 return true if model type is Time
 
bool isBuiltIn (void) const
 return true if model type is built-in, ie: int, double, logical
 

Static Public Member Functions

static bool isKeyLess (const TypeDicRow &i_left, const TypeDicRow &i_right)
 less comparator by unique key: model id, model type id.
 
static bool isKeyEqual (const TypeDicRow &i_left, const TypeDicRow &i_right)
 equal comparator by unique key: model id, model type id.
 
static vector< TypeDicRow >::const_iterator byKey (int i_modelId, int i_typeId, const vector< TypeDicRow > &i_rowVec)
 find row by unique key: model id and model type id.
 
static bool isIntValid (const char *i_value)
 return true if i_value string represent valid integer constant
 
static bool isFloatValid (const char *i_value)
 return true if i_value string represent valid floating point constant
 
static bool isBuiltIn (int i_typeId)
 return true if model type id is built-in type id, ie: int, double, logical
 
static bool isBoolTrue (const char *i_str)
 return true if lower case of source string one of: "1" "t" "true"
 
static bool isBoolValid (const char *i_str)
 return true if lower case of source string one of: "1" "t" "true" "0" "f" "false"
 
- Static Public Member Functions inherited from openm::IMetaRow< TypeDicRow >
static bool keyLess (const IRowBaseUptr &i_left, const IRowBaseUptr &i_right)
 less comparator by row primary key.
 
static bool keyEqual (const IRowBaseUptr &i_left, const IRowBaseUptr &i_right)
 equal comparator by row primary key.
 

Public Attributes

int modelId
 model_id INT NOT NULL
 
int typeId
 model_type_id INT NOT NULL
 
string name
 type_name VARCHAR(255) NOT NULL, – type name: int, double, etc.
 
string digest
 type_digest VARCHAR(32) NOT NULL
 
int dicId
 dic_id INT NOT NULL, – dictionary id: 0=simple 1=logical 2=classification 3=range 4=partition 5=link
 
int totalEnumId
 total_enum_id INT NOT NULL, – if total enabled this is enum_value of total item =max+1
 

Detailed Description

type_dic join to model_type_dic table row.

Member Function Documentation

◆ isInt()

bool TypeDicRow::isInt ( void  ) const

return true if model type is integer (not float, string, boolean or bigint)

return true if model type is integer: not float, string, boolean, bigint (if type is not a built-in then it must be integer enums)


The documentation for this struct was generated from the following files: