fastcgi++  3.1alpha
A C++ FastCGI/Web API
Fastcgipp::SQL::Parameters_base Class Referenceabstract

De-templated base class for Parameters. More...

#include <fastcgi++/sql/parameters.hpp>

Inheritance diagram for Fastcgipp::SQL::Parameters_base:
[legend]
Collaboration diagram for Fastcgipp::SQL::Parameters_base:
[legend]

Public Member Functions

void build ()
 Initialize the arrays needed by SQL. More...
 
const unsigned * oids () const
 Constant pointer to array of all parameter oids. More...
 
const char *const * raws () const
 Constant pointer to pointer array of all raw parameter data. More...
 
const int * sizes () const
 Constant pointer to array of all parameter sizes. More...
 
const int * formats () const
 Constant pointer to array of all formats. More...
 
virtual int size () const =0
 How many parameters in this tuple? More...
 
virtual ~Parameters_base ()
 

Protected Member Functions

virtual void build_impl ()=0
 Template side virtual to populate the above arrays. More...
 

Protected Attributes

const std::vector< unsigned > * m_oids
 Array of oids for each parameter. More...
 
std::vector< const char * > m_raws
 Array of raw data pointers for each parameter. More...
 
std::vector< int > m_sizes
 Array of sizes for each parameter. More...
 
const std::vector< int > * m_formats
 Array of formats for each parameter. More...
 

Detailed Description

De-templated base class for Parameters.

Definition at line 357 of file parameters.hpp.

Constructor & Destructor Documentation

◆ ~Parameters_base()

virtual Fastcgipp::SQL::Parameters_base::~Parameters_base ( )
inlinevirtual

Definition at line 428 of file parameters.hpp.

Member Function Documentation

◆ build()

void Fastcgipp::SQL::Parameters_base::build ( )

Initialize the arrays needed by SQL.

Definition at line 36 of file parameters.cpp.

References build_impl(), m_raws, m_sizes, and size().

Here is the call graph for this function:

◆ build_impl()

virtual void Fastcgipp::SQL::Parameters_base::build_impl ( )
protectedpure virtual

Template side virtual to populate the above arrays.

This just gets called by build().

Implemented in Fastcgipp::SQL::Parameters< Types >.

Referenced by build().

Here is the caller graph for this function:

◆ formats()

const int* Fastcgipp::SQL::Parameters_base::formats ( ) const
inline

Constant pointer to array of all formats.

Definition at line 420 of file parameters.hpp.

◆ oids()

const unsigned* Fastcgipp::SQL::Parameters_base::oids ( ) const
inline

Constant pointer to array of all parameter oids.

This is not valid until build() is called

Definition at line 399 of file parameters.hpp.

◆ raws()

const char* const* Fastcgipp::SQL::Parameters_base::raws ( ) const
inline

Constant pointer to pointer array of all raw parameter data.

This is not valid until build() is called

Definition at line 408 of file parameters.hpp.

◆ size()

virtual int Fastcgipp::SQL::Parameters_base::size ( ) const
pure virtual

How many parameters in this tuple?

Implemented in Fastcgipp::SQL::Parameters< Types >.

Referenced by build().

Here is the caller graph for this function:

◆ sizes()

const int* Fastcgipp::SQL::Parameters_base::sizes ( ) const
inline

Constant pointer to array of all parameter sizes.

Definition at line 414 of file parameters.hpp.

Member Data Documentation

◆ m_formats

const std::vector<int>* Fastcgipp::SQL::Parameters_base::m_formats
protected

Array of formats for each parameter.

This gets initialized by calling build(). It is really just an array of 1s.

Definition at line 383 of file parameters.hpp.

◆ m_oids

const std::vector<unsigned>* Fastcgipp::SQL::Parameters_base::m_oids
protected

Array of oids for each parameter.

This gets initialized by calling build().

Definition at line 364 of file parameters.hpp.

◆ m_raws

std::vector<const char*> Fastcgipp::SQL::Parameters_base::m_raws
protected

Array of raw data pointers for each parameter.

This gets initialized by calling build().

Definition at line 370 of file parameters.hpp.

Referenced by build().

◆ m_sizes

std::vector<int> Fastcgipp::SQL::Parameters_base::m_sizes
protected

Array of sizes for each parameter.

This gets initialized by calling build().

Definition at line 376 of file parameters.hpp.

Referenced by build().


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