The object printer converts an object from a given domain to its string representation.
More...
#include <mknn_printer.hpp>
|
std::unique_ptr< Impl > | pimpl |
| Internal opaque class.
|
|
The object printer 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.
std::string mknn::Printer::objectToString |
( |
void * |
object | ) |
|
Creates a new string.
- Parameters
-
object | the object to convert |
- Returns
- a new string (must be freed)
void mknn::Printer::setMultiobjectFormat |
( |
std::string |
prefix, |
|
|
std::string |
separator, |
|
|
std::string |
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. |
void mknn::Printer::setVectorFormat |
( |
std::string |
vector_prefix, |
|
|
std::string |
dimension_separator, |
|
|
std::string |
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. |
The documentation for this class was generated from the following file: