NME Class Reference
#include <NMECpp.h>
Detailed Description
NME parser class (objects can be used for multiple conversions, by changing input and/or output format before getting output again).
In addition to the conversion of text with NME markup to some text output format, it handles memory allocation with C++ operators new and delete, which simplifies its use with respect to the C interface defined in NME.h. Errors are handled via C++ exceptions.
Definition at line 28 of file NMECpp.h.
Constructor & Destructor Documentation
| NME::NME |
( |
char const * |
input, |
|
|
int |
inputLength = -1 | |
|
) |
| | [inline] |
Constructor with input.
- Parameters:
-
| [in] | input | address of input |
| [in] | inputLength | input length in bytes (if not specified, input is a null-terminated string) |
Definition at line 48 of file NMECpp.h.
| NME::NME |
( |
NME const & |
nme |
) |
[inline] |
Copy constructor.
- Parameters:
-
| [in] | nme | object to be copied |
Definition at line 63 of file NMECpp.h.
Destructor.
Definition at line 73 of file NMECpp.h.
Member Function Documentation
| NME NME::operator= |
( |
NME const & |
nme |
) |
[inline] |
Copy operator.
- Parameters:
-
| [in] | nme | object to be copied |
- Returns:
- *this
Definition at line 83 of file NMECpp.h.
| void NME::setInput |
( |
char const * |
input, |
|
|
int |
inputLength = -1 | |
|
) |
| | [inline] |
Set (or change) input.
- Parameters:
-
| [in] | input | address of input |
| [in] | inputLength | input length in bytes (if not specified, input is a null-terminated string) |
Definition at line 103 of file NMECpp.h.
Set (or change) output format.
- Parameters:
-
| [in] | format | output format |
Definition at line 116 of file NMECpp.h.
| void NME::setFontSize |
( |
NMEInt |
fontSize = 0 |
) |
[inline] |
Set (or change) output font size.
- Parameters:
-
| [in] | fontSize | font size (default is default output font size) |
Definition at line 125 of file NMECpp.h.
Get parser output, generating it if needed.
- Parameters:
-
| [out] | output | address of output (null-terminated) |
| [out] | outputLength | length of output in bytes, excluding null terminator (optional) |
Reimplemented in NMEStyle.
Definition at line 136 of file NMECpp.h.
The documentation for this class was generated from the following file: