libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pqxx::tablereader Class Reference

#include <tablereader.hxx>

Inheritance diagram for pqxx::tablereader:
Collaboration diagram for pqxx::tablereader:

Public Member Functions

 tablereader (transaction_base &, const PGSTD::string &Name, const PGSTD::string &Null=PGSTD::string())
 
template<typename ITER >
 tablereader (transaction_base &, const PGSTD::string &Name, ITER begincolumns, ITER endcolumns)
 
template<typename ITER >
 tablereader (transaction_base &, const PGSTD::string &Name, ITER begincolumns, ITER endcolumns, const PGSTD::string &Null)
 
 ~tablereader () throw ()
 
const PGSTD::string & classname () const throw ()
 
template<typename ITER >
PGSTD::string columnlist (ITER colbegin, ITER colend)
 
virtual void complete ()
 
PGSTD::string description () const
 
bool get_raw_line (PGSTD::string &Line)
 
const PGSTD::string & name () const throw ()
 
 operator bool () const throw ()
 
bool operator! () const throw ()
 
template<typename TUPLE >
tablereaderoperator>> (TUPLE &)
 
template<typename TUPLE >
void tokenize (PGSTD::string, TUPLE &) const
 

Protected Member Functions

void base_close ()
 
bool is_finished () const throw ()
 
const PGSTD::string & NullStr () const
 
void reg_pending_error (const PGSTD::string &) throw ()
 
void register_me ()
 
bool registered () const throw ()
 
void unregister_me () throw ()
 

Static Protected Member Functions

template<typename ITER >
static PGSTD::string columnlist (ITER colbegin, ITER colend)
 

Protected Attributes

transaction_basem_Trans
 

Private Member Functions

PGSTD::string extract_field (const PGSTD::string &, PGSTD::string::size_type &) const
 
void PQXX_PRIVATE reader_close ()
 
void setup (transaction_base &T, const PGSTD::string &RName, const PGSTD::string &Columns=PGSTD::string())
 

Private Attributes

bool m_Done
 

Detailed Description

Deprecated:
Efficiently pull data directly out of a table.
Warning
This class does not work reliably with multibyte encodings. Using it with some multi-byte encodings may pose a security risk.

Constructor & Destructor Documentation

pqxx::tablereader::tablereader ( transaction_base ,
const PGSTD::string &  Name,
const PGSTD::string &  Null = PGSTD::string() 
)
template<typename ITER >
pqxx::tablereader::tablereader ( transaction_base T,
const PGSTD::string &  Name,
ITER  begincolumns,
ITER  endcolumns 
)
inline

References pqxx::tablestream::columnlist(), and setup().

Here is the call graph for this function:

template<typename ITER >
pqxx::tablereader::tablereader ( transaction_base T,
const PGSTD::string &  Name,
ITER  begincolumns,
ITER  endcolumns,
const PGSTD::string &  Null 
)
inline

References pqxx::tablestream::columnlist(), and setup().

Here is the call graph for this function:

pqxx::tablereader::~tablereader ( ) throw ()

Member Function Documentation

void pqxx::tablestream::base_close ( )
protectedinherited
const PGSTD::string& pqxx::internal::namedclass::classname ( ) const throw ()
inlineinherited
template<typename ITER >
static PGSTD::string pqxx::tablestream::columnlist ( ITER  colbegin,
ITER  colend 
)
staticprotectedinherited

Referenced by tablereader(), and pqxx::tablewriter::tablewriter().

Here is the caller graph for this function:

template<typename ITER >
PGSTD::string pqxx::tablestream::columnlist ( ITER  colbegin,
ITER  colend 
)
inlineinherited

References pqxx::separated_list().

Here is the call graph for this function:

virtual void pqxx::tablereader::complete ( )
virtual

Implements pqxx::tablestream.

PGSTD::string pqxx::internal::namedclass::description ( ) const
inherited
PGSTD::string pqxx::tablereader::extract_field ( const PGSTD::string &  ,
PGSTD::string::size_type &   
) const
private

Referenced by tokenize().

Here is the caller graph for this function:

bool pqxx::tablereader::get_raw_line ( PGSTD::string &  Line)
bool pqxx::tablestream::is_finished ( ) const throw ()
inlineprotectedinherited
const PGSTD::string& pqxx::internal::namedclass::name ( ) const throw ()
inlineinherited
const PGSTD::string& pqxx::tablestream::NullStr ( ) const
inlineprotectedinherited

Referenced by pqxx::tablewriter::generate().

Here is the caller graph for this function:

pqxx::tablereader::operator bool ( ) const throw ()
inline
bool pqxx::tablereader::operator! ( ) const throw ()
inline
template<typename TUPLE >
tablereader & pqxx::tablereader::operator>> ( TUPLE &  T)
inline
void PQXX_PRIVATE pqxx::tablereader::reader_close ( )
private
void pqxx::internal::transactionfocus::reg_pending_error ( const PGSTD::string &  ) throw ()
protectedinherited
void pqxx::internal::transactionfocus::register_me ( )
protectedinherited
bool pqxx::internal::transactionfocus::registered ( ) const throw ()
inlineprotectedinherited
void pqxx::tablereader::setup ( transaction_base T,
const PGSTD::string &  RName,
const PGSTD::string &  Columns = PGSTD::string() 
)
private

Referenced by tablereader().

Here is the caller graph for this function:

template<typename TUPLE >
void pqxx::tablereader::tokenize ( PGSTD::string  Line,
TUPLE &  T 
) const
inline

References extract_field().

Here is the call graph for this function:

void pqxx::internal::transactionfocus::unregister_me ( ) throw ()
protectedinherited

Member Data Documentation

bool pqxx::tablereader::m_Done
private
transaction_base& pqxx::internal::transactionfocus::m_Trans
protectedinherited

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