OpenM++ runtime library (libopenm)
openm::DbValue Union Reference

union to pass value to database methods More...

#include <dbCommon.h>

Public Member Functions

 DbValue (void)
 zero initialized value
 
 DbValue (int i_value)
 value initialized by supplied integer
 
 DbValue (unsigned int i_value)
 value initialized by supplied unsigned integer
 
 DbValue (long i_value)
 value initialized by supplied long
 
 DbValue (unsigned long i_value)
 value initialized by supplied unsigned long
 
 DbValue (long long i_value)
 value initialized by supplied long
 
 DbValue (unsigned long long i_value)
 value initialized by supplied unsigned long
 
 DbValue (float i_value)
 value initialized by supplied float
 
 DbValue (double i_value)
 value initialized by supplied double
 
 DbValue (long double i_value)
 value initialized by supplied long double
 
 DbValue (bool i_value)
 value initialized by supplied boolean
 
 DbValue (const char *i_value)
 value initialized by supplied c-style string
 
void clear (void)
 clear value with zeros
 

Static Public Member Functions

template<typename TSrc , typename TDst >
static TDst castDouble (const DbValue &i_value)
 cast between float, double and long double
 
template<>
double castDouble (const DbValue &i_value)
 return double part of db value
 
template<>
double castDouble (const DbValue &i_value)
 cast to double and return float part of db value
 
template<>
double castDouble (const DbValue &i_value)
 cast to double and return long double part of db value
 

Public Attributes

long long llVal
 value of integer type
 
unsigned long long ullVal
 value of unsigned integer type
 
bool isVal
 value of boolean type
 
float fVal
 value of float type
 
double dVal
 value of double type
 
long double dlVal
 value of long double type
 
const char * szVal
 c-style string
 

Detailed Description

union to pass value to database methods


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