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

CdbSTD2CStrAdapterItr Class Reference

A simple adapter to retranslate Standard C++ strings into plain C strings. More...

#include <CdbSTD2CStrAdapterItr.hh>

Inheritance diagram for CdbSTD2CStrAdapterItr:

CdbAdapterItr< const char *, std::string > CdbIItr< const char * > List of all members.

Public Member Functions

 CdbSTD2CStrAdapterItr (CdbIItr< std::string > *theInputItrPtr)
 The normal constructor.

virtual CdbIItr< const char * > * clone () const
 Make a clone of itself.


Protected Member Functions

 CdbSTD2CStrAdapterItr (const CdbSTD2CStrAdapterItr &theOther)
 Copy constructor.

virtual const char * toValue (const std::string &theValue) const
 User defined translation for the currently refered value.


Detailed Description

A simple adapter to retranslate Standard C++ strings into plain C strings.

IMPLEMENTATION NOTE:

Strings pointed by pointers returned as values when calling the iterator's "value()" method should be copied elsewhere before calling the iteratro's "next()" method or destroying/resetting the iterator.

See also:
class CdbAdapterItr

Definition at line 19 of file CdbSTD2CStrAdapterItr.hh.


Constructor & Destructor Documentation

CdbSTD2CStrAdapterItr::CdbSTD2CStrAdapterItr const CdbSTD2CStrAdapterItr &    theOther [inline, protected]
 

Copy constructor.

Definition at line 35 of file CdbSTD2CStrAdapterItr.hh.

Referenced by clone().

CdbSTD2CStrAdapterItr::CdbSTD2CStrAdapterItr CdbIItr< std::string > *    theInputItrPtr [inline]
 

The normal constructor.

We'll take an input iterator whose values need to be retranslated to deliver values of specified "output" type as the iterator will advance.

DESIGN NOTE:

The iterator will take over the specified one.

See also:
CdbAdapterItr::CdbAdapterItr()

Definition at line 52 of file CdbSTD2CStrAdapterItr.hh.


Member Function Documentation

virtual CdbIItr< const char* >* CdbSTD2CStrAdapterItr::clone   const [inline, virtual]
 

Make a clone of itself.

See also:
CdbIItr::clone()

Implements CdbIItr< const char * >.

Definition at line 60 of file CdbSTD2CStrAdapterItr.hh.

References CdbSTD2CStrAdapterItr().

virtual const char* CdbSTD2CStrAdapterItr::toValue const std::string &    theValue const [inline, protected, virtual]
 

User defined translation for the currently refered value.

See also:
CdbAdapterItr::CdbAdapterItr()

Implements CdbAdapterItr< const char *, std::string >.

Definition at line 71 of file CdbSTD2CStrAdapterItr.hh.


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