5#ifndef TPCnvTokenList_p1_h
6#define TPCnvTokenList_p1_h
55 :
public std::vector<TPCnvToken_p1>
62 void addToken(
unsigned short cnvID,
const std::string& token) {
71 for( const_iterator it = begin(); it != end(); ++it ) {
72 if( it->converterID() ==
id )
75 std::ostringstream
error;
76 error <<
"TPCnvTokenList_p1::findToken(): could not find a token for converter ID=" <<
id << std::ends;
77 throw std::runtime_error(
error.str() );
vector of TPCnvToken_p1 Each top-level persistent object that has extentions needs a data member of t...
const std::string & findToken(unsigned short id)
Retrieves token of the extending object given the converter ID.
void addToken(unsigned short cnvID, const std::string &token)
Stores a new reference to an extending object.
This class servers as a persistent pointer to maintain reference between the principal top-level obje...
const std::string & token() const
Returns token.
std::string m_token
token to the extending object
unsigned short m_converterID
ID of the top-level TP converter.
unsigned short converterID() const
Returns the topl level TP converter ID.
TPCnvToken_p1(unsigned short cnvID=0, const std::string &token="")
Constructor.