Public Member Functions | Private Member Functions | Private Attributes | List of all members
soci::row Class Reference

#include <row.h>

Public Member Functions

template<typename T >
void add_holder (T *t, indicator *ind)
 
void add_properties (column_properties const &cp)
 
void clean_up ()
 
template<typename T >
get (std::size_t pos) const
 
template<typename T >
get (std::size_t pos, T const &nullValue) const
 
template<typename T >
get (std::string const &name) const
 
template<typename T >
get (std::string const &name, T const &nullValue) const
 
indicator get_indicator (std::size_t pos) const
 
indicator get_indicator (std::string const &name) const
 
column_properties const & get_properties (std::size_t pos) const
 
column_properties const & get_properties (std::string const &name) const
 
template<typename T >
row const & operator>> (T &value) const
 
void reset_get_counter () const
 
 row ()
 
std::size_t size () const
 
void skip (std::size_t num=1) const
 
void uppercase_column_names (bool forceToUpper)
 
 ~row ()
 

Private Member Functions

std::size_t find_column (std::string const &name) const
 
void operator= (row const &)
 
 row (row const &)
 

Private Attributes

std::vector< column_propertiescolumns_
 
std::size_t currentPos_
 
std::vector< details::holder * > holders_
 
std::map< std::string, std::size_t > index_
 
std::vector< indicator * > indicators_
 
bool uppercaseColumnNames_
 

Detailed Description

Definition at line 41 of file row.h.

Constructor & Destructor Documentation

◆ row() [1/2]

row::row ( )

Definition at line 19 of file row.cpp.

◆ ~row()

row::~row ( )

Definition at line 24 of file row.cpp.

◆ row() [2/2]

soci::row::row ( row const &  )
private

Member Function Documentation

◆ add_holder()

template<typename T >
void soci::row::add_holder ( T *  t,
indicator ind 
)
inline

Definition at line 56 of file row.h.

◆ add_properties()

void row::add_properties ( column_properties const &  cp)

Definition at line 34 of file row.cpp.

◆ clean_up()

void row::clean_up ( )

Definition at line 65 of file row.cpp.

◆ find_column()

std::size_t row::find_column ( std::string const &  name) const
private

Definition at line 102 of file row.cpp.

◆ get() [1/4]

template<typename T >
T soci::row::get ( std::size_t  pos) const
inline

Definition at line 66 of file row.h.

◆ get() [2/4]

template<typename T >
T soci::row::get ( std::size_t  pos,
T const &  nullValue 
) const
inline

Definition at line 79 of file row.h.

◆ get() [3/4]

template<typename T >
T soci::row::get ( std::string const &  name) const
inline

Definition at line 92 of file row.h.

◆ get() [4/4]

template<typename T >
T soci::row::get ( std::string const &  name,
T const &  nullValue 
) const
inline

Definition at line 99 of file row.h.

◆ get_indicator() [1/2]

indicator row::get_indicator ( std::size_t  pos) const

Definition at line 80 of file row.cpp.

◆ get_indicator() [2/2]

indicator row::get_indicator ( std::string const &  name) const

Definition at line 86 of file row.cpp.

◆ get_properties() [1/2]

column_properties const & row::get_properties ( std::size_t  pos) const

Definition at line 91 of file row.cpp.

◆ get_properties() [2/2]

column_properties const & row::get_properties ( std::string const &  name) const

Definition at line 97 of file row.cpp.

◆ operator=()

void soci::row::operator= ( row const &  )
private

◆ operator>>()

template<typename T >
row const& soci::row::operator>> ( T &  value) const
inline

Definition at line 112 of file row.h.

◆ reset_get_counter()

void soci::row::reset_get_counter ( ) const
inline

Definition at line 124 of file row.h.

◆ size()

std::size_t row::size ( ) const

Definition at line 60 of file row.cpp.

◆ skip()

void soci::row::skip ( std::size_t  num = 1) const
inline

Definition at line 119 of file row.h.

◆ uppercase_column_names()

void row::uppercase_column_names ( bool  forceToUpper)

Definition at line 29 of file row.cpp.

Member Data Documentation

◆ columns_

std::vector<column_properties> soci::row::columns_
private

Definition at line 136 of file row.h.

◆ currentPos_

std::size_t soci::row::currentPos_
mutableprivate

Definition at line 142 of file row.h.

◆ holders_

std::vector<details::holder*> soci::row::holders_
private

Definition at line 137 of file row.h.

◆ index_

std::map<std::string, std::size_t> soci::row::index_
private

Definition at line 139 of file row.h.

◆ indicators_

std::vector<indicator*> soci::row::indicators_
private

Definition at line 138 of file row.h.

◆ uppercaseColumnNames_

bool soci::row::uppercaseColumnNames_
private

Definition at line 141 of file row.h.


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


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Mon Feb 28 2022 21:48:45