Main Page   Data Structures   File List   Data Fields  

CMyMySQLPPRow Class Reference

#include <MyMySQLPPRow.h>


Detailed Description

Represents a single row in a record set.

Definition at line 30 of file MyMySQLPPRow.h.

Public Member Functions

 CMyMySQLPPRow (void)
 Class constructor.

 CMyMySQLPPRow (MYSQL_ROW row, MYSQL_RES *res)
 Class constructor accepting data.

 ~CMyMySQLPPRow (void)
 Class destructor.

void Free (void)
 Resets internal row and result set pointers.

void Attach (MYSQL_ROW row, MYSQL_RES *res)
 Attaches a row and result set object.

unsigned int GetNumFields (void)
 Returns number of fields in this row.

CMyMySQLPPTypeConv operator[] (int idx)
 Returns value of field.

CMyMySQLPPTypeConv Get (int idx)
 Returns value of field.

CMyMySQLPPTypeConv operator[] (char *name)
 Returns value of field.

CMyMySQLPPTypeConv Get (char *name)
 Returns value of field.


Constructor & Destructor Documentation

CMyMySQLPPRow::CMyMySQLPPRow void   
 

Class constructor.

Definition at line 32 of file MyMySQLPPRow.cpp.

References Free().

CMyMySQLPPRow::CMyMySQLPPRow MYSQL_ROW    row,
MYSQL_RES *    res
 

Class constructor accepting data.

Parameters:
row MYSQL_ROW to manage
res Pointer to result set that contains the row

Definition at line 41 of file MyMySQLPPRow.cpp.

References Attach().

CMyMySQLPPRow::~CMyMySQLPPRow void   
 

Class destructor.

Definition at line 47 of file MyMySQLPPRow.cpp.

References Free().


Member Function Documentation

void CMyMySQLPPRow::Attach MYSQL_ROW    row,
MYSQL_RES *    res
 

Attaches a row and result set object.

Parameters:
row MYSQL_ROW to manage
res Pointer to result set that contains the row

Definition at line 63 of file MyMySQLPPRow.cpp.

References Free().

Referenced by CMyMySQLPPRow(), and CMyMySQLPPResult::FetchRow().

void CMyMySQLPPRow::Free void   
 

Resets internal row and result set pointers.

Definition at line 53 of file MyMySQLPPRow.cpp.

Referenced by Attach(), CMyMySQLPPRow(), CMyMySQLPPResult::FetchRow(), and ~CMyMySQLPPRow().

CMyMySQLPPTypeConv CMyMySQLPPRow::Get char *    name
 

Returns value of field.

Parameters:
name Name of field
Returns:
Field value as CMyMySQLPPTypeConv that automatically converts to the required data type.

Definition at line 123 of file MyMySQLPPRow.cpp.

CMyMySQLPPTypeConv CMyMySQLPPRow::Get int    idx
 

Returns value of field.

Parameters:
idx Index of field
Returns:
Field value as CMyMySQLPPTypeConv that automatically converts to the required data type.

Definition at line 93 of file MyMySQLPPRow.cpp.

unsigned int CMyMySQLPPRow::GetNumFields void   
 

Returns number of fields in this row.

Returns:
Number of fields

Definition at line 73 of file MyMySQLPPRow.cpp.

CMyMySQLPPTypeConv CMyMySQLPPRow::operator[] char *    name
 

Returns value of field.

Parameters:
name Name of field
Returns:
Field value as CMyMySQLPPTypeConv that automatically converts to the required data type.

Definition at line 104 of file MyMySQLPPRow.cpp.

CMyMySQLPPTypeConv CMyMySQLPPRow::operator[] int    idx
 

Returns value of field.

Parameters:
idx Index of field
Returns:
Field value as CMyMySQLPPTypeConv that automatically converts to the required data type.

Definition at line 82 of file MyMySQLPPRow.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 20 16:16:00 2003 for MyMySQL++ by doxygen1.3-rc3