#include <NML.h>
Public Methods | |
NML * | CreateNML (const NML::RawNewsObject_t &rno, const NMLEscapeCodeHandler *EscapeCodeHandler) |
create an NML object from raw NML An NML object will be created from the specified raw news object, even if the raw news object is invalid. In this case, an error NML object is created containing a hexadecimal dump of the erroneous input. A handler for NML escape code sequences, e.g. RemoveNMLEscapeSequences or NMLEscapeSequences2HTML must be specified, so that escape code sequences can be handled in an application specific way. | |
NML * | CreateError (NML::NewsObjectId_t oid, const char *title) |
generate an invalid NML error object The title of the error message will be title, and the body will consist of a hex dump of the erroneous NML object. | |
NML * | CreateErrorDump (NML::NewsObjectId_t oid, const NML::RawNewsObject_t &rno, const char *error_msg) |
generate an NML Error object from a raw news object generates a fake NML object containing an error message. | |
Static Public Methods | |
NMLFactory * | Instance (void) |
NMLFactory Singleton Instance. | |
void | ExitInstance (void) |
NMLFactory Singleton ExitInstance destroys the (only) instance of NMLFactory). | |
Private Methods | |
NMLFactory () | |
~NMLFactory () | |
NMLFactory & | operator= (const NMLFactory &) |
NMLFactory (const NMLFactory &) | |
Static Private Attributes | |
NMLFactory * | _instance = 0 |
|
|
|
|
|
|
|
generate an invalid NML error object The title of the error message will be title, and the body will consist of a hex dump of the erroneous NML object. and a hex dump of the raw news object
|
|
generate an NML Error object from a raw news object generates a fake NML object containing an error message. The title of the error message will be error_msg, and the body will consist of a hex dump of the erroneous NML object. and a hex dump of the raw news object
|
|
create an NML object from raw NML An NML object will be created from the specified raw news object, even if the raw news object is invalid. In this case, an error NML object is created containing a hexadecimal dump of the erroneous input. A handler for NML escape code sequences, e.g. RemoveNMLEscapeSequences or NMLEscapeSequences2HTML must be specified, so that escape code sequences can be handled in an application specific way.
|
|
NMLFactory Singleton ExitInstance destroys the (only) instance of NMLFactory).
|
|
NMLFactory Singleton Instance.
|
|
|
|
|