A MknnPrinter converts an object from a given domain to its string representation.
More...
Go to the source code of this file.
A MknnPrinter converts an object from a given domain to its string representation.
Creates an empty object.
- Parameters
-
domain | the domain of the objects |
- Returns
- a new printer object.
char* mknn_printer_objectToNewString |
( |
MknnPrinter * |
printer, |
|
|
void * |
object |
|
) |
| |
Creates a new string.
- Parameters
-
object | the object to convert |
printer | the printer object |
- Returns
- a new string (must be freed)
Releases the printer.
- Parameters
-
void mknn_printer_setMultiobjectFormat |
( |
MknnPrinter * |
printer, |
|
|
const char * |
prefix, |
|
|
const char * |
separator, |
|
|
const char * |
suffix |
|
) |
| |
Changes the format for objects of the general domain multiobject.
- Parameters
-
prefix | the string that is print in front of the multiobject. |
separator | the string that is print between objects. |
suffix | the string that is print after the multiobject. |
printer | the printer object |
void mknn_printer_setVectorFormat |
( |
MknnPrinter * |
printer, |
|
|
const char * |
vector_prefix, |
|
|
const char * |
dimension_separator, |
|
|
const char * |
vector_suffix |
|
) |
| |
Changes the format for objects of the general domain vector.
- Parameters
-
vector_prefix | the string that is print in front of the vector. |
dimension_separator | the string that is print between dimensions. |
vector_suffix | the string that is print after the vector. |
printer | the printer object |