19 : _nameMatrix (iNameMatrix._nameMatrix) {
28 std::ostringstream oStr;
34 std::ostringstream oStr;
37 unsigned short idx = 0;
38 for (NameMatrix_T::const_iterator itNameList = _nameMatrix.begin();
39 itNameList != _nameMatrix.end(); ++itNameList, ++idx) {
43 const Names& lNameList = itNameList->second;
61 std::ostringstream oStr;
69 bool oFoundNameList =
false;
71 NameMatrix_T::const_iterator itNameList = _nameMatrix.find (iLanguageCode);
72 if (itNameList != _nameMatrix.end()) {
73 const Names& lNameList = itNameList->second;
75 oFoundNameList =
true;
78 return oFoundNameList;
83 const std::string& iName) {
86 NameMatrix_T::iterator itNameList = _nameMatrix.find (iLanguageCode);
87 if (itNameList != _nameMatrix.end()) {
89 Names& lNameList = itNameList->second;
95 Names lNameList (iLanguageCode);
99 const bool insertSucceeded =
100 _nameMatrix.insert (NameMatrix_T::value_type (iLanguageCode,
102 if (insertSucceeded ==
false) {
104 <<
"the dedicated list for the "
105 << iLanguageCode <<
" language");
107 assert (insertSucceeded ==
true);
bool getNameList(const LanguageCode_T &, NameList_T &) const
#define OPENTREP_LOG_ERROR(iToBeLogged)
void addName(const LanguageCode_T &, const std::string &iName)
void toStream(std::ostream &) const
void fromStream(std::istream &)
std::string describeKey() const
std::list< std::string > NameList_T
void addName(const std::string &iName)
std::string toString() const
const NameList_T & getNameList() const
std::string describe() const
std::string describe() const