DP3
Public Types | Public Member Functions | Public Attributes | List of all members
dp3::common::KVpair Class Reference

Implements a KV pair as a pair<string, string>. More...

#include <KVpair.h>

Inheritance diagram for dp3::common::KVpair:

Public Types

enum  {
  VT_UNKNOWN = 0 , VT_STRING , VT_BOOL , VT_INT ,
  VT_DOUBLE , VT_FLOAT , VT_TIME_T
}
 

Public Member Functions

 KVpair ()
 
 KVpair (const KVpair &that)
 
 KVpair (const std::string &aKey, bool aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 KVpair (const std::string &aKey, const char *aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 KVpair (const std::string &aKey, const std::string &aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 KVpair (const std::string &aKey, double aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 KVpair (const std::string &aKey, float aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 KVpair (const std::string &aKey, int aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 KVpair (const std::string &aKey, time_t aValue, bool genTimestamp=false, bool timestampInKeyname=false)
 
 ~KVpair ()
 
KVpairoperator= (const KVpair &that)
 
bool operator== (const KVpair &that) const
 

Public Attributes

double timestamp
 
int16_t valueType
 

Detailed Description

Implements a KV pair as a pair<string, string>.

Implements a KV pair as a pair<string, string>.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VT_UNKNOWN 
VT_STRING 
VT_BOOL 
VT_INT 
VT_DOUBLE 
VT_FLOAT 
VT_TIME_T 

Constructor & Destructor Documentation

◆ KVpair() [1/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
const std::string &  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [2/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
const char *  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [3/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
bool  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [4/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
int  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [5/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
double  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [6/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
float  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [7/9]

dp3::common::KVpair::KVpair ( const std::string &  aKey,
time_t  aValue,
bool  genTimestamp = false,
bool  timestampInKeyname = false 
)

◆ KVpair() [8/9]

dp3::common::KVpair::KVpair ( )

◆ ~KVpair()

dp3::common::KVpair::~KVpair ( )

◆ KVpair() [9/9]

dp3::common::KVpair::KVpair ( const KVpair that)

Member Function Documentation

◆ operator=()

KVpair& dp3::common::KVpair::operator= ( const KVpair that)

◆ operator==()

bool dp3::common::KVpair::operator== ( const KVpair that) const
inline

Member Data Documentation

◆ timestamp

double dp3::common::KVpair::timestamp

◆ valueType

int16_t dp3::common::KVpair::valueType

The documentation for this class was generated from the following file: