fastcgi++
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes
ASql::MySQL::TypedConversion< Data::Wtext > Struct Template Reference

Handle retrieval and code conversion of utf-8 textual data. More...

#include <mysql.hpp>

Inheritance diagram for ASql::MySQL::TypedConversion< Data::Wtext >:
ASql::MySQL::TypedConversion< Data::Blob > ASql::Data::Conversion

List of all members.

Public Member Functions

 TypedConversion (int column_, MYSQL_STMT *const &statement_, void *&buffer_)
void convertResult ()
 Retrieve the result and code convert it to a Data::Wtext pointed to by external.
void convertParam ()
 Code convert the Data::Wtext pointed to by external into buffer.
void * getPointer ()
 Get a pointer to data chunk the MySQL library should write to. In this case, it won't be writing.

Public Attributes

enum_field_types bufferType
 &MySQL buffer type (MYSQL_TYPE_BLOB or MYSQL_TYPE_STRING)
unsigned long length
 Actual length of field.
void * external
 Pointer to standard data type.

Protected Member Functions

void grabIt (Data::Blob &data)
 Retrieve data from the query into the passed vector.

Protected Attributes

void *& buffer
 Reference to associated MySQL bind object buffer pointer.
int column
 Associated column/parameter number.
MYSQL_STMT *const & statement
 Reference to associated MySQL C API statement object.

Private Attributes

std::vector< char > inputBuffer
 Conversion buffer.

Detailed Description

template<>
struct ASql::MySQL::TypedConversion< Data::Wtext >

Handle retrieval and code conversion of utf-8 textual data.

Definition at line 465 of file mysql.hpp.


Constructor & Destructor Documentation

ASql::MySQL::TypedConversion< Data::Wtext >::TypedConversion ( int  column_,
MYSQL_STMT *const &  statement_,
void *&  buffer_ 
) [inline]
Parameters:
[in]column_Associated column/parameter number.
[in]statement_Reference to MySQL C API statement object.
[out]buffer_Reference to associated MySQL bind object buffer pointer.

Definition at line 472 of file mysql.hpp.


Member Function Documentation

Code convert the Data::Wtext pointed to by external into buffer.

Reimplemented from ASql::MySQL::TypedConversion< Data::Blob >.

Retrieve the result and code convert it to a Data::Wtext pointed to by external.

Reimplemented from ASql::MySQL::TypedConversion< Data::Blob >.

void* ASql::MySQL::TypedConversion< Data::Blob >::getPointer ( ) [inline, virtual, inherited]

Get a pointer to data chunk the MySQL library should write to. In this case, it won't be writing.

Returns:
Null pointer.

Implements ASql::Data::Conversion.

Definition at line 399 of file mysql.hpp.

void ASql::MySQL::TypedConversion< Data::Blob >::grabIt ( Data::Blob data) [protected, inherited]

Retrieve data from the query into the passed vector.

Parameters:
[out]dataVector to dump the data into. Size will be adjusted.

Member Data Documentation

void*& ASql::MySQL::TypedConversion< Data::Blob >::buffer [protected, inherited]

Reference to associated MySQL bind object buffer pointer.

Definition at line 410 of file mysql.hpp.

enum_field_types ASql::MySQL::TypedConversion< Data::Blob >::bufferType [inherited]

&MySQL buffer type (MYSQL_TYPE_BLOB or MYSQL_TYPE_STRING)

Definition at line 384 of file mysql.hpp.

int ASql::MySQL::TypedConversion< Data::Blob >::column [protected, inherited]

Associated column/parameter number.

Definition at line 413 of file mysql.hpp.

Pointer to standard data type.

Definition at line 705 of file data.hpp.

Referenced by ASql::MySQL::TypedConversion< Data::Blob >::convertResult().

std::vector<char> ASql::MySQL::TypedConversion< Data::Wtext >::inputBuffer [private]

Conversion buffer.

Definition at line 481 of file mysql.hpp.

unsigned long ASql::MySQL::TypedConversion< Data::Blob >::length [inherited]

Actual length of field.

Definition at line 387 of file mysql.hpp.

MYSQL_STMT* const& ASql::MySQL::TypedConversion< Data::Blob >::statement [protected, inherited]

Reference to associated MySQL C API statement object.

Definition at line 416 of file mysql.hpp.


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