| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
TePGRecordset Class Reference

`#include <TePGInterface.h>`

List of all members.

## Public Member Functions

| TePGRecordset (const string &str_qry=string(""), TePGConnection *con_x=0, const TeCursorType &cursorType=TeUNIDIRECTIONAL, const TeCursorLocation &cursorLocation=TeSERVERSIDE, const TeCursorDataType &cursorDataType=TeTEXTCURSOR, const int &numRowsToRetrieve=2000)
virtual | ~TePGRecordset ()
void | close (void)
int | recordCount (void) const
int | getFieldCount (void) const
bool | state (void) const
bool | eof (void) const
bool | bof (void) const
bool | moveFirst (void)
bool | movePrevious (void)
bool | moveNext (void)
bool | moveLast (void)
bool | moveTo (const int &lin_number)
int | index (void) const
bool | open (const string &str_qry, TePGConnection *con_x, const TeCursorType &cursorType=TeUNIDIRECTIONAL, const TeCursorLocation &cursorLocation=TeSERVERSIDE, const TeCursorDataType &cursorDataType=TeTEXTCURSOR, const int &numRowsToRetrieve=2000)
char * | fieldName (const int &field_num) const
int | fieldNum (const string &field_name) const
Oid | fieldType (const int &field_num) const
Oid | fieldType (const string &field_name) const
bool | isNull (const int &field_num) const
bool | isNull (const string &field_name) const
int | fieldSize (const int &field_num)
int | fieldSize (const string &field_name)
int | fieldSizeFractionaryPart (const int &field_num)
int | fieldSizeFractionaryPart (const string &field_name)
char * | value (const int &field_num) const
char * | value (const string &field_name) const
int | getBytea (const int &field_num, char *&buff) const
int | getBytea (const string &field_name, char *&buff) const
int | getInt (const int &field_num) const
int | getInt (const string &field_name) const
int | getInt8 (const int &field_num) const
int | getInt8 (const string &field_name) const
bool | getBool (const int &field_num) const
bool | getBool (const string &field_name) const
double | getDouble (const int &field_num) const
double | getDouble (const string &field_name) const
string | getDate (const int &field_num) const
string | getDate (const string &field_name) const
string | getTime (const int &field_num)
string | getTime (const string &field_name)
string | getTimeStamp (const int &field_num)
string | getTimeStamp (const string &field_name)
char * | getData (const int &field_num)
char * | getData (const string &field_name)
void | getByteALine2D (const int &field_num, TeLine2D &l) const
void | getByteALine2D (const string &field_name, TeLine2D &l) const
void | getPGBox (const int &field_num, TeBox &b) const
void | getPGBox (const string &field_name, TeBox &b) const
void | getPGLine2D (const int &field_num, TeLine2D &l) const
void | getPGLine2D (const string &field_name, TeLine2D &l) const
void | getPGISPoint (const int &field_num, TePoint &p) const
void | getPGISPoint (const string &field_name, TePoint &p) const
void | getPGISLine (const int &field_num, TeLine2D &l) const
void | getPGISLine (const string &field_name, TeLine2D &l) const
void | getPGISPolygon (const int &field_num, TePolygon &p) const
void | getPGISPolygon (const string &field_name, TePolygon &p) const
void | getPGISMultiPoint (const int &field_num, TePointSet &ps) const
void | getPGISMultiPoint (const string &field_name, TePointSet &ps) const
void | getPGISMultiLine (const int &field_num, TeLineSet &ls) const
void | getPGISMultiLine (const string &field_name, TeLineSet &ls) const
void | getPGISMultiPolygon (const int &field_num, TePolygonSet &ps) const
void | getPGISMultiPolygon (const string &field_name, TePolygonSet &ps) const
void | getPGISGeomColl (const int &field_num, TeMultiGeometry &m) const
void | getPGISGeomColl (const string &field_name, TeMultiGeometry &m) const

## Protected Member Functions

| TePGRecordset (const TePGRecordset &c)
TePGRecordset & | operator= (const TePGRecordset &c)
void | freeRecordSet ()
char * | getWKBHeader (char *v, unsigned char &byteOrder, unsigned int &wkbType, unsigned int &numGeometries, int &srid) const
char * | getWKBPoint (char *v, TePoint &p) const
char * | getWKBLine (char *v, TeLine2D &l) const
char * | getWKBPolygon (char *v, TePolygon &p) const
char * | getWKBMultiPoint (char *v, TePointSet &ps) const
char * | getWKBMultiLine (char *v, TeLineSet &ls) const
char * | getWKBMultiPolygon (char *v, TePolygonSet &ps) const
void | getWKBGeomColl (char *v, TeMultiGeometry &mg) const
char * | getWKBLinearRing (char *v, int byteOrder, TeLine2D &line) const

## Static Protected Member Functions

static int | getFreeCursor ()
static void | releaseCursor (const int &idToRelease)

## Protected Attributes

PGresult * | pg_recordset_
TePGConnection * | conn_
bool | cursorDeclared_
int | int_index_current_
int | int_eof_
TeCursorType | cursorType_
TeCursorLocation | cursorLocation_
TeCursorDataType | cursorDataType_
int | numRowsToRetrieve_
int | recordSetId_
bool | isLittleEndian_
string | data_
bool | movingBackward_
bool | lastFetch
bool | firstFetch

## Static Protected Attributes

static const int | int_bof_ = -1
static int | openRecordSets_ = 0
static set< int > | freeCursorNumbers_
static TeMutex | _mutexLock

## Constructor & Destructor Documentation

TePGRecordset::TePGRecordset | ( | const string & | str_qry = `string("")`,
|  | TePGConnection * | con_x = `0`,
|  | const TeCursorType & | cursorType = `TeUNIDIRECTIONAL`,
|  | const TeCursorLocation & | cursorLocation = `TeSERVERSIDE`,
|  | const TeCursorDataType & | cursorDataType = `TeTEXTCURSOR`,
|  | const int & | numRowsToRetrieve = `2000`
| ) |  |

TePGRecordset::~TePGRecordset | ( |  | ) | `[virtual]`

TePGRecordset::TePGRecordset | ( | const TePGRecordset & | c | ) | `[protected]`

## Member Function Documentation

bool TePGRecordset::bof | ( | void |  | ) | const`[inline]`

void TePGRecordset::close | ( | void |  | ) |

bool TePGRecordset::eof | ( | void |  | ) | const`[inline]`

char* TePGRecordset::fieldName | ( | const int & | field_num | ) | const`[inline]`

int TePGRecordset::fieldNum | ( | const string & | field_name | ) | const`[inline]`

int TePGRecordset::fieldSize | ( | const int & | field_num | ) |

int TePGRecordset::fieldSize | ( | const string & | field_name | ) | `[inline]`

int TePGRecordset::fieldSizeFractionaryPart | ( | const int & | field_num | ) |

int TePGRecordset::fieldSizeFractionaryPart | ( | const string & | field_name | ) | `[inline]`

Oid TePGRecordset::fieldType | ( | const int & | field_num | ) | const`[inline]`

Oid TePGRecordset::fieldType | ( | const string & | field_name | ) | const`[inline]`

void TePGRecordset::freeRecordSet | ( |  | ) | `[protected]`

bool TePGRecordset::getBool | ( | const int & | field_num | ) | const`[inline]`

bool TePGRecordset::getBool | ( | const string & | field_name | ) | const`[inline]`

int TePGRecordset::getBytea | ( | const int & | field_num,
|  | char *& | buff
| ) |  | const

int TePGRecordset::getBytea | ( | const string & | field_name,
|  | char *& | buff
| ) |  | const`[inline]`

void TePGRecordset::getByteALine2D | ( | const int & | field_num,
|  | TeLine2D & | l
| ) |  | const

void TePGRecordset::getByteALine2D | ( | const string & | field_name,
|  | TeLine2D & | l
| ) |  | const`[inline]`

char * TePGRecordset::getData | ( | const int & | field_num | ) |

char* TePGRecordset::getData | ( | const string & | field_name | ) | `[inline]`

string TePGRecordset::getDate | ( | const int & | field_num | ) | const

string TePGRecordset::getDate | ( | const string & | field_name | ) | const`[inline]`

double TePGRecordset::getDouble | ( | const int & | field_num | ) | const`[inline]`

double TePGRecordset::getDouble | ( | const string & | field_name | ) | const`[inline]`

int TePGRecordset::getFieldCount | ( | void |  | ) | const`[inline]`

static int TePGRecordset::getFreeCursor | ( |  | ) | `[inline, static, protected]`

int TePGRecordset::getInt | ( | const int & | field_num | ) | const`[inline]`

int TePGRecordset::getInt | ( | const string & | field_name | ) | const`[inline]`

int TePGRecordset::getInt8 | ( | const int & | field_num | ) | const

int TePGRecordset::getInt8 | ( | const string & | field_name | ) | const`[inline]`

void TePGRecordset::getPGBox | ( | const int & | field_num,
|  | TeBox & | b
| ) |  | const

void TePGRecordset::getPGBox | ( | const string & | field_name,
|  | TeBox & | b
| ) |  | const`[inline]`

void TePGRecordset::getPGISGeomColl | ( | const int & | field_num,
|  | TeMultiGeometry & | m
| ) |  | const

void TePGRecordset::getPGISGeomColl | ( | const string & | field_name,
|  | TeMultiGeometry & | m
| ) |  | const`[inline]`

void TePGRecordset::getPGISLine | ( | const int & | field_num,
|  | TeLine2D & | l
| ) |  | const

void TePGRecordset::getPGISLine | ( | const string & | field_name,
|  | TeLine2D & | l
| ) |  | const`[inline]`

void TePGRecordset::getPGISMultiLine | ( | const string & | field_name,
|  | TeLineSet & | ls
| ) |  | const`[inline]`

void TePGRecordset::getPGISMultiLine | ( | const int & | field_num,
|  | TeLineSet & | ls
| ) |  | const

void TePGRecordset::getPGISMultiPoint | ( | const string & | field_name,
|  | TePointSet & | ps
| ) |  | const`[inline]`

void TePGRecordset::getPGISMultiPoint | ( | const int & | field_num,
|  | TePointSet & | ps
| ) |  | const

void TePGRecordset::getPGISMultiPolygon | ( | const string & | field_name,
|  | TePolygonSet & | ps
| ) |  | const`[inline]`

void TePGRecordset::getPGISMultiPolygon | ( | const int & | field_num,
|  | TePolygonSet & | ps
| ) |  | const

void TePGRecordset::getPGISPoint | ( | const int & | field_num,
|  | TePoint & | p
| ) |  | const

void TePGRecordset::getPGISPoint | ( | const string & | field_name,
|  | TePoint & | p
| ) |  | const`[inline]`

void TePGRecordset::getPGISPolygon | ( | const string & | field_name,
|  | TePolygon & | p
| ) |  | const`[inline]`

void TePGRecordset::getPGISPolygon | ( | const int & | field_num,
|  | TePolygon & | p
| ) |  | const

void TePGRecordset::getPGLine2D | ( | const string & | field_name,
|  | TeLine2D & | l
| ) |  | const`[inline]`

void TePGRecordset::getPGLine2D | ( | const int & | field_num,
|  | TeLine2D & | l
| ) |  | const

string TePGRecordset::getTime | ( | const int & | field_num | ) |

string TePGRecordset::getTime | ( | const string & | field_name | ) | `[inline]`

string TePGRecordset::getTimeStamp | ( | const int & | field_num | ) |

string TePGRecordset::getTimeStamp | ( | const string & | field_name | ) | `[inline]`

void TePGRecordset::getWKBGeomColl | ( | char * | v,
|  | TeMultiGeometry & | mg
| ) |  | const`[protected]`

char * TePGRecordset::getWKBHeader | ( | char * | v,
|  | unsigned char & | byteOrder,
|  | unsigned int & | wkbType,
|  | unsigned int & | numGeometries,
|  | int & | srid
| ) |  | const`[protected]`

char * TePGRecordset::getWKBLine | ( | char * | v,
|  | TeLine2D & | l
| ) |  | const`[protected]`

char * TePGRecordset::getWKBLinearRing | ( | char * | v,
|  | int | byteOrder,
|  | TeLine2D & | line
| ) |  | const`[protected]`

char * TePGRecordset::getWKBMultiLine | ( | char * | v,
|  | TeLineSet & | ls
| ) |  | const`[protected]`

char * TePGRecordset::getWKBMultiPoint | ( | char * | v,
|  | TePointSet & | ps
| ) |  | const`[protected]`

char * TePGRecordset::getWKBMultiPolygon | ( | char * | v,
|  | TePolygonSet & | ps
| ) |  | const`[protected]`

char * TePGRecordset::getWKBPoint | ( | char * | v,
|  | TePoint & | p
| ) |  | const`[protected]`

char * TePGRecordset::getWKBPolygon | ( | char * | v,
|  | TePolygon & | p
| ) |  | const`[protected]`

int TePGRecordset::index | ( | void |  | ) | const`[inline]`

bool TePGRecordset::isNull | ( | const int & | field_num | ) | const`[inline]`

bool TePGRecordset::isNull | ( | const string & | field_name | ) | const`[inline]`

bool TePGRecordset::moveFirst | ( | void |  | ) |

bool TePGRecordset::moveLast | ( | void |  | ) |

bool TePGRecordset::moveNext | ( | void |  | ) |

bool TePGRecordset::movePrevious | ( | void |  | ) |

bool TePGRecordset::moveTo | ( | const int & | lin_number | ) |

bool TePGRecordset::open | ( | const string & | str_qry,
|  | TePGConnection * | con_x,
|  | const TeCursorType & | cursorType = `TeUNIDIRECTIONAL`,
|  | const TeCursorLocation & | cursorLocation = `TeSERVERSIDE`,
|  | const TeCursorDataType & | cursorDataType = `TeTEXTCURSOR`,
|  | const int & | numRowsToRetrieve = `2000`
| ) |  |

TePGRecordset& TePGRecordset::operator= | ( | const TePGRecordset & | c | ) | `[protected]`

int TePGRecordset::recordCount | ( | void |  | ) | const`[inline]`

static void TePGRecordset::releaseCursor | ( | const int & | idToRelease | ) | `[inline, static, protected]`

bool TePGRecordset::state | ( | void |  | ) | const`[inline]`

char* TePGRecordset::value | ( | const string & | field_name | ) | const`[inline]`

char* TePGRecordset::value | ( | const int & | field_num | ) | const`[inline]`

## Member Data Documentation

TeMutex TePGRecordset::_mutexLock`[static, protected]`

TePGConnection* TePGRecordset::conn_`[protected]`

TeCursorDataType TePGRecordset::cursorDataType_`[protected]`

bool TePGRecordset::cursorDeclared_`[protected]`

TeCursorLocation TePGRecordset::cursorLocation_`[protected]`

TeCursorType TePGRecordset::cursorType_`[protected]`

string TePGRecordset::data_`[protected]`

bool TePGRecordset::firstFetch`[protected]`

std::set< int > TePGRecordset::freeCursorNumbers_`[static, protected]`

const int TePGRecordset::int_bof_ = -1`[static, protected]`

int TePGRecordset::int_eof_`[protected]`

int TePGRecordset::int_index_current_`[protected]`

bool TePGRecordset::isLittleEndian_`[protected]`

bool TePGRecordset::lastFetch`[protected]`

bool TePGRecordset::movingBackward_`[protected]`

int TePGRecordset::numRowsToRetrieve_`[protected]`

int TePGRecordset::openRecordSets_ = 0`[static, protected]`

PGresult* TePGRecordset::pg_recordset_`[protected]`

int TePGRecordset::recordSetId_`[protected]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/PostgreSQL/TePGInterface.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/PostgreSQL/TePGInterface.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines