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, BlobDbDataValue
 
typedef std::vector< DbDataValueDbDataValueVec
 
typedef std::vector< GenDb::DbDataType::typeDbDataTypeVec
 
typedef boost::ptr_vector< NewColNewColVec
 
typedef boost::ptr_vector< ColListColListVec
 
typedef boost::tuple< std::string, GenDb::Op::type, DbDataValueWhereIndexInfo
 
typedef std::vector< WhereIndexInfoWhereIndexInfoVec
 
typedef boost::tuple< std::string, bool, bool, bool > FieldNamesToReadInfo
 
typedef std::vector< FieldNamesToReadInfoFieldNamesToReadVec
 
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 208 of file gendb_if.h.

◆ DbDataTypeVec

Definition at line 101 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 85 of file gendb_if.h.

◆ DbDataValueVec

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

Definition at line 100 of file gendb_if.h.

◆ Endpoint

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

Definition at line 240 of file gendb_if.h.

◆ FieldNamesToReadInfo

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

Definition at line 237 of file gendb_if.h.

◆ FieldNamesToReadVec

Definition at line 238 of file gendb_if.h.

◆ NewColVec

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

Definition at line 186 of file gendb_if.h.

◆ WhereIndexInfo

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

Definition at line 232 of file gendb_if.h.

◆ WhereIndexInfoVec

Definition at line 233 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 87 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 116 of file gendb_if.cc.

◆ DbDataValueToString()

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

Definition at line 165 of file gendb_if.cc.

◆ DbDataValueVecToString()

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

Definition at line 102 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 76 of file gendb_if.h.

◆ operator<<()

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

Definition at line 128 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 72 of file gendb_if.h.

◆ operator==() [2/2]

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

Definition at line 202 of file gendb_if.h.