#include <opentrep/Names.hpp>
Public Member Functions | |
Names (const LanguageCode_T &) | |
Names (const Names &) | |
~Names () | |
LanguageCode_T | getLanguageCode () const |
const NameList_T & | getNameList () const |
std::string | getFirstName () const |
void | setLanguageCode (const LanguageCode_T &iLanguageCode) |
void | addName (const std::string &iName) |
void | resetList () |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
std::string | describeKey () const |
std::string | describe () const |
Structure holding names for a BOM type (place, day, month, etc.), in a given language.
OPENTREP::Names::Names | ( | const LanguageCode_T & | iLanguageCode | ) |
OPENTREP::Names::Names | ( | const Names & | iName | ) |
|
inline |
Get the language code.
Definition at line 53 of file Names.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation().
|
inline |
Get the name list.
Definition at line 60 of file Names.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), OPENTREP::NameMatrix::getNameList(), and OPENTREP::BomJSONExport::jsonExportLocation().
std::string OPENTREP::Names::getFirstName | ( | ) | const |
|
inline |
void OPENTREP::Names::addName | ( | const std::string & | iName | ) |
Add a name to the dedicated list.
Definition at line 89 of file Names.cpp.
Referenced by OPENTREP::NameMatrix::addName().
void OPENTREP::Names::resetList | ( | ) |
|
virtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 73 of file Names.cpp.
References describe().
|
virtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements OPENTREP::OPENTREP_Abstract.
|
virtual |
Get the serialised version of the structure.
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 82 of file Names.cpp.
References describe().
std::string OPENTREP::Names::describeKey | ( | ) | const |
Display the key of the structure.
Definition at line 44 of file Names.cpp.
Referenced by describe().
std::string OPENTREP::Names::describe | ( | ) | const |
Display of the structure.
Definition at line 51 of file Names.cpp.
References describeKey().
Referenced by OPENTREP::NameMatrix::describe(), toStream(), and toString().