Class xlifepp::Messages#
-
class Messages#
-
Collaboration diagram for xlifepp::Messages:
store the list of message formats by type as a std::map is indexed by the message format
Public Functions
-
Messages()#
-
Default constructor.
default constructor
-
Messages(const string_t &file, std::ofstream &out, const string_t &msgFile, const string_t &msgType = string_t("XLiFE++"))#
-
Constructor from file.
-
~Messages()#
-
Destructor.
destructor
-
void appendFromFile(const string_t&)#
-
append a new message format in list
append new message formats in list from file
-
MsgFormat *find(const string_t&)#
-
find an error format by its stringId (log complexity)
find format by stringId (log complexity)
-
void loadFormat(const string_t&)#
-
load format from a file
reads message formats from file format: # int_id string_id string x string x y … create an MsgFormat object for each item read
-
inline string_t msgFile() const#
-
returns message file
-
inline std::ofstream *msgStream() const#
-
returns message stream
-
inline string_t msgType() const#
-
returns type of message
-
void printList(std::ofstream&)#
-
print the list of all messages
print on the ofstream out the list of all formats of message
Public Members
-
bool traceWhere#
-
internal flag for printing trace
-
Messages()#