|
|
Low level output handling for the Standard OpenMath protocol.
This class provides a basic light encapsulation of the C library, concerning the output operations. The built-in types in use are strongly compatible with those used in the C library. This layer can be used independently from the object-oriented approach provided by the OmNode hierarchy, and it may be more simple to integrate it in C++ code than directly calling the C library.
Any call to writeX() may throw an exception, which should be caught as an OmException & object. All writeX() methods return the current (this) output device.
OmOutputDevice & writeInteger (int value_in) |
Write a built-in 32-bits signed integer value.
OmOutputDevice & writeBigInteger (const char * digits_in, int sign_in, unsigned int base_in) |
Write a big integer number.
OmOutputDevice & writeFloat (double value_in) |
Write a built-in 64bits float value.
OmOutputDevice & writeByteArray (const char * buffer_in, unsigned int length_in) |
Write a byte array.
OmOutputDevice & writeString (const char * buffer_in) |
Write a zero-terminated C string of 8 bits characters.
OmOutputDevice & writeWString (const wchar_t * buffer_in) |
Write a zero-terminated C string of wide characters.
OmOutputDevice & writeVariable (const char * name_in) |
Write a variable as a zero-terminated C string of characters.
OmOutputDevice & writeSymbol (const char * cd_in, const char * name_in) |
Write a symbol as a couple (cd, name) of two zero-terminated strings of characters.
OmOutputDevice & writeApplication () |
Write an application begin tag.
OmOutputDevice & writeEndApplication () |
Write an application end tag.
OmOutputDevice & writeAttribute () |
Write an attribute begin tag.
OmOutputDevice & writeEndAttribute () |
Write an attribute end tag.
OmOutputDevice & writeAttributeParameter () |
Write an attribute parameter begin tag.
OmOutputDevice & writeEndAttributeParameter () |
Write an attribute parameter end tag.
OmOutputDevice & writeBinding () |
Write a binding begin tag.
OmOutputDevice & writeEndBinding () |
Write a binding end tag.
OmOutputDevice & writeBindingVariable () |
Write a binding variable begin tag.
OmOutputDevice & writeEndBindingVariable () |
Write a binding variable end tag.
OmOutputDevice & writeObject () |
Write an object begin tag.
OmOutputDevice & writeEndObject () |
Write an object end tag.
OmOutputDevice & writeError () |
Write an error begin tag.
OmOutputDevice & writeEndError () |
Write an error end tag.
OmOutputDevice & writePInstruction (const char * buffer_in) |
Write a processing instruction.
OmOutputDevice & writeComment (const char * buffer_in) |
Write a comment.
OmOutputDevice (OmOutputStream & stream_in, OmEncoding encoding_in, bool ignoreComment_in=true) |
Constructor. The output stream and the encoding must be given in arguments, they cannot change later. Also it is strongly recommended not to share an output stream with another output device (undefined behavior).
~OmOutputDevice () |
Destructor.
OmEncoding getEncoding () |
Get the encoding.
Generated by: root@localhost.localdomain on Tue Oct 12 21:02:30 199. |