Covalent Bond  0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
Public Member Functions | Private Attributes | List of all members
cbMySQLCell Class Reference

#include <cbTable.hpp>

Public Member Functions

 cbMySQLCell ()
 
 cbMySQLCell (const protocol::MySQLCell &m)
 
 cbMySQLCell (int value)
 
 cbMySQLCell (float value)
 
 cbMySQLCell (double value)
 
 cbMySQLCell (unsigned long long value)
 
 cbMySQLCell (const std::string &value)
 
 cbMySQLCell (const std::string &value, const cbMySQLType &t)
 
bool isNull () const
 
bool isInt () const
 
bool isString () const
 
bool isFloat () const
 
bool isDouble () const
 
bool isULL () const
 
bool isDate () const
 
bool isTime () const
 
bool isDatetime () const
 
int asInt () const
 
std::string asString () const
 
float asFloat () const
 
double asDouble () const
 
unsigned long long asULL () const
 
std::string asDate () const
 
std::string asTime () const
 
std::string asDatetime () const
 
void setInt (int value)
 
void setString (const std::string &value)
 
void setFloat (float value)
 
void setDouble (double value)
 
void setULL (unsigned long long value)
 
void setDate (const std::string &value)
 
void setTime (const std::string &value)
 
void setDatetime (const std::string &value)
 
cbMySQLType getType ()
 

Private Attributes

cbMySQLType m_type = cbMySQLType::Null
 
__cbMySQLMeta m_data
 

Detailed Description

Definition at line 468 of file cbTable.hpp.

Constructor & Destructor Documentation

◆ cbMySQLCell() [1/8]

cbMySQLCell::cbMySQLCell ( )
inline

Definition at line 470 of file cbTable.hpp.

◆ cbMySQLCell() [2/8]

cbMySQLCell::cbMySQLCell ( const protocol::MySQLCell &  m)

Definition at line 306 of file cbTable.cpp.

References DataTime, Date, Double, Float, Int, m_data, m_type, Null, String, Time, and ULL.

◆ cbMySQLCell() [3/8]

cbMySQLCell::cbMySQLCell ( int  value)
inline

Definition at line 472 of file cbTable.hpp.

◆ cbMySQLCell() [4/8]

cbMySQLCell::cbMySQLCell ( float  value)
inline

Definition at line 473 of file cbTable.hpp.

◆ cbMySQLCell() [5/8]

cbMySQLCell::cbMySQLCell ( double  value)
inline

Definition at line 474 of file cbTable.hpp.

◆ cbMySQLCell() [6/8]

cbMySQLCell::cbMySQLCell ( unsigned long long  value)
inline

Definition at line 475 of file cbTable.hpp.

◆ cbMySQLCell() [7/8]

cbMySQLCell::cbMySQLCell ( const std::string &  value)
inline

Definition at line 476 of file cbTable.hpp.

◆ cbMySQLCell() [8/8]

cbMySQLCell::cbMySQLCell ( const std::string &  value,
const cbMySQLType t 
)
inline

Definition at line 477 of file cbTable.hpp.

Member Function Documentation

◆ asDate()

std::string cbMySQLCell::asDate ( ) const

Definition at line 427 of file cbTable.cpp.

References asString().

Here is the call graph for this function:

◆ asDatetime()

std::string cbMySQLCell::asDatetime ( ) const

Definition at line 431 of file cbTable.cpp.

References asString().

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asDouble()

double cbMySQLCell::asDouble ( ) const

Definition at line 417 of file cbTable.cpp.

References isDouble(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asFloat()

float cbMySQLCell::asFloat ( ) const

Definition at line 412 of file cbTable.cpp.

References isFloat(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asInt()

int cbMySQLCell::asInt ( ) const

Definition at line 402 of file cbTable.cpp.

References isInt(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asString()

std::string cbMySQLCell::asString ( ) const

Definition at line 407 of file cbTable.cpp.

References isString(), and m_data.

Referenced by asDate(), asDatetime(), asTime(), and bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asTime()

std::string cbMySQLCell::asTime ( ) const

Definition at line 429 of file cbTable.cpp.

References asString().

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ asULL()

unsigned long long cbMySQLCell::asULL ( ) const

Definition at line 422 of file cbTable.cpp.

References isULL(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getType()

cbMySQLType cbMySQLCell::getType ( )

Definition at line 465 of file cbTable.cpp.

References m_type.

◆ isDate()

bool cbMySQLCell::isDate ( ) const

Definition at line 381 of file cbTable.cpp.

References Date, and m_type.

Referenced by setDate().

Here is the caller graph for this function:

◆ isDatetime()

bool cbMySQLCell::isDatetime ( ) const

Definition at line 395 of file cbTable.cpp.

References DataTime, and m_type.

Referenced by bindAllFuncByDefault(), and setDatetime().

Here is the caller graph for this function:

◆ isDouble()

bool cbMySQLCell::isDouble ( ) const

Definition at line 367 of file cbTable.cpp.

References Double, and m_type.

Referenced by asDouble(), bindAllFuncByDefault(), and setDouble().

Here is the caller graph for this function:

◆ isFloat()

bool cbMySQLCell::isFloat ( ) const

Definition at line 360 of file cbTable.cpp.

References Float, and m_type.

Referenced by asFloat(), bindAllFuncByDefault(), and setFloat().

Here is the caller graph for this function:

◆ isInt()

bool cbMySQLCell::isInt ( ) const

Definition at line 343 of file cbTable.cpp.

References Int, and m_type.

Referenced by asInt(), bindAllFuncByDefault(), and setInt().

Here is the caller graph for this function:

◆ isNull()

bool cbMySQLCell::isNull ( ) const

Definition at line 336 of file cbTable.cpp.

References m_type, and Null.

◆ isString()

bool cbMySQLCell::isString ( ) const

Definition at line 350 of file cbTable.cpp.

References DataTime, Date, m_type, String, and Time.

Referenced by asString(), bindAllFuncByDefault(), and setString().

Here is the caller graph for this function:

◆ isTime()

bool cbMySQLCell::isTime ( ) const

Definition at line 388 of file cbTable.cpp.

References m_type, and Time.

Referenced by bindAllFuncByDefault(), and setTime().

Here is the caller graph for this function:

◆ isULL()

bool cbMySQLCell::isULL ( ) const

Definition at line 374 of file cbTable.cpp.

References m_type, and ULL.

Referenced by asULL(), bindAllFuncByDefault(), and setULL().

Here is the caller graph for this function:

◆ setDate()

void cbMySQLCell::setDate ( const std::string &  value)

Definition at line 453 of file cbTable.cpp.

References isDate(), and m_data.

Here is the call graph for this function:

◆ setDatetime()

void cbMySQLCell::setDatetime ( const std::string &  value)

Definition at line 461 of file cbTable.cpp.

References isDatetime(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDouble()

void cbMySQLCell::setDouble ( double  value)

Definition at line 445 of file cbTable.cpp.

References isDouble(), and m_data.

Here is the call graph for this function:

◆ setFloat()

void cbMySQLCell::setFloat ( float  value)

Definition at line 441 of file cbTable.cpp.

References isFloat(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setInt()

void cbMySQLCell::setInt ( int  value)

Definition at line 433 of file cbTable.cpp.

References isInt(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setString()

void cbMySQLCell::setString ( const std::string &  value)

Definition at line 437 of file cbTable.cpp.

References isString(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTime()

void cbMySQLCell::setTime ( const std::string &  value)

Definition at line 457 of file cbTable.cpp.

References isTime(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setULL()

void cbMySQLCell::setULL ( unsigned long long  value)

Definition at line 449 of file cbTable.cpp.

References isULL(), and m_data.

Referenced by bindAllFuncByDefault().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_data

__cbMySQLMeta cbMySQLCell::m_data
private

◆ m_type

cbMySQLType cbMySQLCell::m_type = cbMySQLType::Null
private

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