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

generic two string columns: (code, value) table row. More...

Inheritance diagram for openm::CodeValueRow:
Collaboration diagram for openm::CodeValueRow:

Public Member Functions

 CodeValueRow (const string &i_code, const string i_value)
 create row with supplied field values. More...
 
 CodeValueRow (const string &i_code)
 create row with supplied primary key field values. More...
 
 CodeValueRow (void)
 create row with default empty field values. More...
 

Static Public Member Functions

static bool isKeyLess (const CodeValueRow &i_left, const CodeValueRow &i_right)
 less comparator by primary key: code. More...
 
static bool isKeyEqual (const CodeValueRow &i_left, const CodeValueRow &i_right)
 equal comparator by primary key: code. More...
 
- Static Public Member Functions inherited from openm::IMetaRow< CodeValueRow >
static bool keyLess (const IRowBaseUptr &i_left, const IRowBaseUptr &i_right)
 less comparator by row primary key. More...
 
static bool keyEqual (const IRowBaseUptr &i_left, const IRowBaseUptr &i_right)
 equal comparator by row primary key. More...
 

Public Attributes

string code
 code VARCHAR(...) NOT NULL
 
string value
 value VARCHAR(...) NOT NULL
 

Detailed Description

generic two string columns: (code, value) table row.

Constructor & Destructor Documentation

◆ CodeValueRow() [1/3]

openm::CodeValueRow::CodeValueRow ( const string &  i_code,
const string  i_value 
)
inline

create row with supplied field values.

◆ CodeValueRow() [2/3]

openm::CodeValueRow::CodeValueRow ( const string &  i_code)
inline

create row with supplied primary key field values.

◆ CodeValueRow() [3/3]

openm::CodeValueRow::CodeValueRow ( void  )
inline

create row with default empty field values.

Member Function Documentation

◆ isKeyEqual()

bool CodeValueRow::isKeyEqual ( const CodeValueRow i_left,
const CodeValueRow i_right 
)
static

equal comparator by primary key: code.

◆ isKeyLess()

bool CodeValueRow::isKeyLess ( const CodeValueRow i_left,
const CodeValueRow i_right 
)
static

less comparator by primary key: code.


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