OSB_LIB::Id2InfoReader< NameList > Struct Template Reference

Inheritance diagram for OSB_LIB::Id2InfoReader< NameList >:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::Id2InfoReader< NameList >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename NameList>
struct OSB_LIB::Id2InfoReader< NameList >

Wrapper to NameListReader for object with Id2<T> object ids.

Parameters:
NameList Type of namelist to populate.

Definition at line 326 of file namelist.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

template<typename NameList>
OSB_LIB::Id2InfoReader< NameList >::Id2InfoReader ( const std::string &  table,
const std::string &  colId1,
const std::string &  colId2,
const std::string &  colName = "NAME",
const std::string &  colDes = "DES" 
)

Constructor with table name, name of both id columns and optional names for name and des columns.

Definition at line 527 of file namelist.h.

References OSB_LIB::NameListReader::colDes_, OSB_LIB::NameListReader::colId1_, OSB_LIB::NameListReader::colId2_, OSB_LIB::NameListReader::colName_, and OSB_LIB::NameListReader::table_.


Member Function Documentation

template<typename NameList>
void OSB_LIB::Id2InfoReader< NameList >::addRow ( const Row &  row  ) 

Add a row to the namelist.

Parameters:
row Data to add.
The function has no effect if namelist_ is 0.

Definition at line 554 of file namelist.h.

References OSB_LIB::Id2InfoReader< NameList >::namelist_.

template<typename NameList>
void OSB_LIB::Id2InfoReader< NameList >::read ( const OSB_DB::Session session,
NameList dest 
)

Read the objects from the database.

Parameters:
session Database session to use.
dest Namelist to populate.

Definition at line 543 of file namelist.h.

References OSB_LIB::Id2InfoReader< NameList >::namelist_, and OSB_LIB::NameListReader::read().


Member Data Documentation

template<typename NameList>
NameList* OSB_LIB::Id2InfoReader< NameList >::namelist_ [private]

Namelist to populate.

Definition at line 360 of file namelist.h.

Referenced by OSB_LIB::Id2InfoReader< NameList >::addRow(), and OSB_LIB::Id2InfoReader< NameList >::read().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 2 14:11:45 2006 for OSB Library by  doxygen 1.4.7