#include <Message_MsgFile.hxx>
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Static Public Member Functions | |
static Standard_EXPORT Standard_Boolean | Load (const Standard_CString theDirName, const Standard_CString theFileName) |
Load message file <thefilename> from directory <thedirname> or its sub-directory . | |
static Standard_EXPORT Standard_Boolean | LoadFile (const Standard_CString theFName) |
Load the messages from the given file, additive to any previously loaded messages. Messages with same keywords, if already present, are replaced with the new ones. . | |
static Standard_EXPORT void | LoadFromEnv (const Standard_CString envname, const Standard_CString filename, const Standard_CString ext="") |
Loads the messages from the file with name (without extension) given by environment variable. Extension of the file name is given separately. If its not defined, it is taken: - by default from environment CSF_LANGUAGE, - if not defined either, as "us". . | |
static Standard_EXPORT Standard_Boolean | AddMsg (const TCollection_AsciiString &key, const TCollection_ExtendedString &text) |
Adds new message to the map. Parameter <key> gives the key of the message, <text> defines the message itself. If there already was defined the message identified by the same keyword, it is replaced with the new one. . | |
static Standard_EXPORT const TCollection_ExtendedString & | Msg (const Standard_CString key) |
static Standard_EXPORT const TCollection_ExtendedString & | Msg (const TCollection_AsciiString &key) |
Gives the text for the message identified by the keyword <key> If there are no messages with such keyword defined, the error message is returned. In that case reference to static string is returned, it can be chenged with next call(s) to Msg(). Note: The error message is constructed like 'Unknown message: <key>', and can itself be customized by defining message with key Message_Msg_BadKeyword. . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|