Definition at line 63 of file osbmsgcat.h.
typedef std::map<std::string, ErrList*> OSB_LIB::MsgCat::ErrLists [private] |
OSB_LIB::MsgCat::MsgCat | ( | ) | [private] |
Constructor.
It sets useLocks_ to false.
Multi-threaded applications must call useLocks() to protect the acess to the message catalogue.
OSB_LIB::MsgCat::~MsgCat | ( | ) | [private] |
Destructor: delete entries in errLists_.
OSB_LIB::MsgCat::MsgCat | ( | const MsgCat & | ) | [private] |
Prevent copying: not implemented.
Get the texts applicable for an error category.
static MsgCat& OSB_LIB::MsgCat::instance | ( | ) | [static] |
Get the only instance of the class.
void OSB_LIB::MsgCat::mkMsg | ( | const BaseError & | e, | |
std::string & | dest | |||
) |
Create the message text for an OSB error.
static void OSB_LIB::MsgCat::msg | ( | const BaseError & | e, | |
std::string & | dest | |||
) | [static] |
Create the message text for an OSB error.
static void OSB_LIB::MsgCat::useLocks | ( | ) | [static] |
Tell the message catalogue to use locks.
friend struct Destroy [friend] |
friend struct Init [friend] |
Destroy OSB_LIB::MsgCat::destroy_ [static, private] |
ErrLists OSB_LIB::MsgCat::errLists_ [private] |
MsgCat* OSB_LIB::MsgCat::instance_ [static, private] |
Mutex OSB_LIB::MsgCat::mutex_ [private] |
MutexUnlock OSB_LIB::MsgCat::unlock_ [private] |
bool OSB_LIB::MsgCat::useLocks_ [private] |
Flag to use locks.
Unless the application creates an Init object with useLocks = true, the flag is false and access to the message catalogue is unprotected.
Definition at line 139 of file osbmsgcat.h.