Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

RdbMySQLRow Class Reference

#include <RdbMySQLRow.hh>

List of all members.

Public Member Functions

 RdbMySQLRow (char **row, unsigned long *lengths)
 ~RdbMySQLRow ()
const char * at (unsigned int i) const
 get the specified field as a string

unsigned long size (unsigned int i) const
 get the size of the string

template<typename T> bool at (unsigned int i, T &val) const
 do a type conversion


Detailed Description

This class represents a single row in the result (relation).

This software was developed for the BaBar collaboration. If you use all or part of it, please give an appropriate acknowledgement.

Copyright (C) 2005 SLAC

See also:
RdbMySQLResult

RdbMySQLHeader

Version:
Id
RdbMySQLRow.hh,v 1.3 2005/04/15 17:56:07 salnikov Exp
Author:
Andy Salnikov

Definition at line 67 of file RdbMySQLRow.hh.


Constructor & Destructor Documentation

RdbMySQLRow::RdbMySQLRow char **    row,
unsigned long *    lengths
[inline]
 

Constructor takes MYSQL_ROW pointer, and the fields list

Definition at line 74 of file RdbMySQLRow.hh.

RdbMySQLRow::~RdbMySQLRow   [inline]
 

Definition at line 77 of file RdbMySQLRow.hh.


Member Function Documentation

template<typename T>
bool RdbMySQLRow::at unsigned int    i,
T &    val
const [inline]
 

do a type conversion

Definition at line 87 of file RdbMySQLRow.hh.

References at(), and size().

const char* RdbMySQLRow::at unsigned int    i const [inline]
 

get the specified field as a string

Definition at line 80 of file RdbMySQLRow.hh.

Referenced by at(), and RdbMySQLDumpTable::runApp().

unsigned long RdbMySQLRow::size unsigned int    i const [inline]
 

get the size of the string

Definition at line 83 of file RdbMySQLRow.hh.

Referenced by at().


The documentation for this class was generated from the following file:
Generated on Mon Dec 5 18:22:27 2005 for CDB by doxygen1.3-rc3