6 #ifndef LOFAR_COMMON_KVPAIR_H
7 #define LOFAR_COMMON_KVPAIR_H
24 class KVpair :
public std::pair<std::string, std::string> {
31 KVpair(
const std::string& aKey,
const std::string& aValue,
32 bool genTimestamp =
false,
bool timestampInKeyname =
false);
33 KVpair(
const std::string& aKey,
const char* aValue,
bool genTimestamp =
false,
34 bool timestampInKeyname =
false);
35 KVpair(
const std::string& aKey,
bool aValue,
bool genTimestamp =
false,
36 bool timestampInKeyname =
false);
37 KVpair(
const std::string& aKey,
int aValue,
bool genTimestamp =
false,
38 bool timestampInKeyname =
false);
39 KVpair(
const std::string& aKey,
double aValue,
bool genTimestamp =
false,
40 bool timestampInKeyname =
false);
41 KVpair(
const std::string& aKey,
float aValue,
bool genTimestamp =
false,
42 bool timestampInKeyname =
false);
43 KVpair(
const std::string& aKey, time_t aValue,
bool genTimestamp =
false,
44 bool timestampInKeyname =
false);
53 return (first == that.first && second == that.second &&
Implements a KV pair as a pair<string, string>.
Definition: KVpair.h:24
@ VT_TIME_T
Definition: KVpair.h:68
@ VT_FLOAT
Definition: KVpair.h:67
@ VT_INT
Definition: KVpair.h:65
@ VT_UNKNOWN
Definition: KVpair.h:62
@ VT_DOUBLE
Definition: KVpair.h:66
@ VT_BOOL
Definition: KVpair.h:64
@ VT_STRING
Definition: KVpair.h:63
KVpair(const std::string &aKey, float aValue, bool genTimestamp=false, bool timestampInKeyname=false)
bool operator==(const KVpair &that) const
Definition: KVpair.h:52
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 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)
int16_t valueType
Definition: KVpair.h:59
KVpair & operator=(const KVpair &that)
double timestamp
Definition: KVpair.h:58
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)
std::ostream & operator<<(std::ostream &os, const KVpair &kv)
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53