vector of TPCnvToken_p1 Each top-level persistent object that has extentions needs a data member of this type.
More...
#include <TPCnvTokenList_p1.h>
|
| void | addToken (unsigned short cnvID, const std::string &token) |
| | Stores a new reference to an extending object.
|
| const std::string & | findToken (unsigned short id) |
| | Retrieves token of the extending object given the converter ID.
|
vector of TPCnvToken_p1 Each top-level persistent object that has extentions needs a data member of this type.
Definition at line 54 of file TPCnvTokenList_p1.h.
◆ addToken()
| void TPCnvTokenList_p1::addToken |
( |
unsigned short | cnvID, |
|
|
const std::string & | token ) |
|
inline |
Stores a new reference to an extending object.
- Parameters
-
| [in] | cnvID | ID of the TP converter for the object |
| [in] | token | token referencing the extending object |
Definition at line 62 of file TPCnvTokenList_p1.h.
62 {
63 push_back( TPCnvToken_p1(cnvID, token) );
64 }
◆ findToken()
| const std::string & TPCnvTokenList_p1::findToken |
( |
unsigned short | id | ) |
|
|
inline |
Retrieves token of the extending object given the converter ID.
- Parameters
-
| [in] | id | the ID of the extending converter |
- Returns
- token to the extending persistent object
Definition at line 70 of file TPCnvTokenList_p1.h.
70 {
72 if(
it->converterID() ==
id )
74 }
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() );
78 }
◆ elements
| T std::vector< T >::elements |
|
inherited |
The documentation for this class was generated from the following file: