About
Typically a MAXON API interface or a data type defines a "ToString()" function. This function returns a maxon::String describing the given object. Such a "ToString()" function accepts a maxon::FormatStatement argument that can contain additional information on how the object should be described.
Class
A maxon::FormatStatement object contains string stored under a given string identifier.
ToString
A "ToString()" function can read information from the given maxon::FormatStatement to define how it formats the returned maxon::String.
{
if (formatStatement)
{
}
if (longFormat)
else
}
const char * format
Definition: abstract.h:183
maxon::String ToString(const Filename &val, const maxon::FormatStatement *formatStatement, maxon::Bool checkDatatype=false)
Definition: string.h:1492
Definition: string.h:1237
PyObject PyObject * result
Definition: abstract.h:43
bool Bool
boolean type, possible values are only false/true, 8 bit
Definition: apibase.h:195
#define FormatString(...)
Definition: string.h:2168
Usage
When calling a "ToString()" function the call can hand over a maxon::FormatStatement argument to modify the behaviour of the function.
For more information about the output syntax see Output Syntax.
- Note
- Not all "ToString()" functions do handle the maxon::FormatStatement argument. When a function does not handle the argument, a nullptr can be handed over.
Definition: formatstatement.h:10
maxon::String ToString(const maxon::FormatStatement *formatStatement=nullptr) const
[data_formatstring_tostring]
Definition: formatstatement.h:26
maxon::Float _c
Definition: formatstatement.h:21
maxon::Float _a
Definition: formatstatement.h:17
maxon::Float _b
Definition: formatstatement.h:20
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
#define iferr_return
Definition: resultbase.h:1524
Further Reading