OpenSDN source code
GenDb Namespace Reference

Classes

struct  DbConsistency
 
struct  Op
 
struct  Blob
 
struct  NewCf
 
struct  NewCol
 
struct  ColList
 
struct  ColumnNameRange
 
struct  DbOpResult
 
class  GenDbIf
 
class  DbTableStatistics
 
class  IfErrors
 
class  GenDbIfStats
 

Typedefs

typedef boost::variant< boost::blank, std::string, uint64_t, uint32_t, boost::uuids::uuid, uint8_t, uint16_t, double, IpAddress, Blob > DbDataValue
 
typedef std::vector< DbDataValue > DbDataValueVec
 
typedef std::vector< GenDb::DbDataType::type > DbDataTypeVec
 
typedef boost::ptr_vector< NewCol > NewColVec
 
typedef boost::ptr_vector< ColList > ColListVec
 
typedef boost::tuple< std::string, GenDb::Op::type, DbDataValue > WhereIndexInfo
 
typedef std::vector< WhereIndexInfo > WhereIndexInfoVec
 
typedef boost::tuple< std::string, bool, bool, bool > FieldNamesToReadInfo
 
typedef std::vector< FieldNamesToReadInfo > FieldNamesToReadVec
 
typedef boost::asio::ip::tcp::endpoint Endpoint
 

Enumerations

enum  DbDataValueType {
  DB_VALUE_BLANK = 0 , DB_VALUE_STRING = 1 , DB_VALUE_UINT64 = 2 , DB_VALUE_UINT32 = 3 ,
  DB_VALUE_UUID = 4 , DB_VALUE_UINT8 = 5 , DB_VALUE_UINT16 = 6 , DB_VALUE_DOUBLE = 7 ,
  DB_VALUE_INET = 8 , DB_VALUE_BLOB = 9
}
 

Functions

bool operator== (const Blob &lhs, const Blob &rhs)
 
bool operator< (const Blob &lhs, const Blob &rhs)
 
std::ostream & operator<< (std::ostream &out, const Blob &value)
 
std::string DbDataValueVecToString (const GenDb::DbDataValueVec &v_db_value)
 
std::string DbDataValueToString (const GenDb::DbDataValue &db_value)
 
std::string bytes_to_hex (const uint8_t *byte_array, size_t size)
 
bool operator== (const ColList &lhs, const ColList &rhs)
 

Typedef Documentation

◆ ColListVec

typedef boost::ptr_vector<ColList> GenDb::ColListVec

Definition at line 209 of file gendb_if.h.

◆ DbDataTypeVec

Definition at line 102 of file gendb_if.h.

◆ DbDataValue

typedef boost::variant<boost::blank, std::string, uint64_t, uint32_t, boost::uuids::uuid, uint8_t, uint16_t, double, IpAddress, Blob> GenDb::DbDataValue

Definition at line 86 of file gendb_if.h.

◆ DbDataValueVec

typedef std::vector<DbDataValue> GenDb::DbDataValueVec

Definition at line 101 of file gendb_if.h.

◆ Endpoint

typedef boost::asio::ip::tcp::endpoint GenDb::Endpoint

Definition at line 241 of file gendb_if.h.

◆ FieldNamesToReadInfo

typedef boost::tuple<std::string, bool, bool, bool> GenDb::FieldNamesToReadInfo

Definition at line 238 of file gendb_if.h.

◆ FieldNamesToReadVec

Definition at line 239 of file gendb_if.h.

◆ NewColVec

typedef boost::ptr_vector<NewCol> GenDb::NewColVec

Definition at line 187 of file gendb_if.h.

◆ WhereIndexInfo

typedef boost::tuple<std::string, GenDb::Op::type, DbDataValue> GenDb::WhereIndexInfo

Definition at line 233 of file gendb_if.h.

◆ WhereIndexInfoVec

Definition at line 234 of file gendb_if.h.

Enumeration Type Documentation

◆ DbDataValueType

Enumerator
DB_VALUE_BLANK 
DB_VALUE_STRING 
DB_VALUE_UINT64 
DB_VALUE_UINT32 
DB_VALUE_UUID 
DB_VALUE_UINT8 
DB_VALUE_UINT16 
DB_VALUE_DOUBLE 
DB_VALUE_INET 
DB_VALUE_BLOB 

Definition at line 88 of file gendb_if.h.

Function Documentation

◆ bytes_to_hex()

std::string GenDb::bytes_to_hex ( const uint8_t *  byte_array,
size_t  size 
)

Definition at line 117 of file gendb_if.cc.

◆ DbDataValueToString()

std::string GenDb::DbDataValueToString ( const GenDb::DbDataValue &  db_value)

Definition at line 166 of file gendb_if.cc.

◆ DbDataValueVecToString()

std::string GenDb::DbDataValueVecToString ( const GenDb::DbDataValueVec &  v_db_value)

Definition at line 103 of file gendb_if.cc.

Here is the call graph for this function:

◆ operator<()

bool GenDb::operator< ( const Blob &  lhs,
const Blob &  rhs 
)
inline

Definition at line 77 of file gendb_if.h.

◆ operator<<()

std::ostream & GenDb::operator<< ( std::ostream &  out,
const Blob &  value 
)

Definition at line 129 of file gendb_if.cc.

Here is the call graph for this function:

◆ operator==() [1/2]

bool GenDb::operator== ( const Blob &  lhs,
const Blob &  rhs 
)
inline

Definition at line 73 of file gendb_if.h.

◆ operator==() [2/2]

bool GenDb::operator== ( const ColList &  lhs,
const ColList &  rhs 
)
inline

Definition at line 203 of file gendb_if.h.