OpenM++ runtime library (libopenm)
dbValue.h File Reference

OpenM++ data library: db value classes access value rows: input parameter, accumulator or expression tables. More...

Include dependency graph for dbValue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openm::DbValueSetter
 set DbValue by casting a pointer to the value More...
 
class  openm::ValueFormatterBase< valueLen >
 false boolean value as string More...
 
struct  openm::ValueArray
 microdata csv value formatter: long strings are not supported More...
 
struct  openm::ValueRow
 value table row: parameter, accumulators or expression tables More...
 
class  openm::ValueRowAdapter
 Row adapter to select row from value table (parameter, accumulator or expression) More...
 
class  openm::ValueRowDigester
 row processor to calculate digest of value table row (parameter, accumulator or expression) More...
 

Namespaces

namespace  openm
 openM++ namespace
 

Typedefs

typedef ValueFormatterBase< OM_STR_DB_MAX > openm::ValueFormatter
 
typedef ValueFormatterBase< OM_CODE_DB_MAX > openm::ShortFormatter
 parameter, accumulator or expression value formatter
 

Functions

template<typename TValue >
int openm::FormatHandler (const void *i_value, size_t i_size, char *io_buffer, const char *i_format)
 convert value to string using snprintf: integer and float values.
 
template<typename TValue >
int openm::FloatSqlFormatHandler (const void *i_value, size_t i_size, char *io_buffer, const char *i_format)
 convert value to string using snprintf: integer and float values.
 
int openm::BoolFormatHandler (const void *i_value, size_t i_size, char *io_buffer)
 convert bool value to string: return "true" or "false" More...
 
int openm::BoolSqlFormatHandler (const void *i_value, size_t i_size, char *io_buffer)
 convert bool value to SQL constant: return "1" or "0"
 
int openm::StrFormatHandler (const void *i_value, size_t i_size, char *io_buffer)
 convert value to string: make a copy of source string More...
 
int openm::StrSqlFormatHandler (const void *i_value, size_t i_size, char *io_buffer)
 convert string value into SQL constant: return 'quoted source value'
 

Variables

const char * openm::nullValueString = "null"
 
const char * openm::trueValueString = "true"
 NULL value as string.
 
const char * openm::falseValueString = "false"
 true boolean value as string
 

Detailed Description

OpenM++ data library: db value classes access value rows: input parameter, accumulator or expression tables.