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
 
Definition: string.h:1542
 
Definition: string.h:1287
 
PyObject PyObject * result
Definition: abstract.h:43
 
bool Bool
boolean type, possible values are only false/true, 8 bit
Definition: apibase.h:180
 
#define FormatString(...)
Definition: string.h:2218
 
maxon::String ToString(const Filename &val, const maxon::FormatStatement *formatStatement, maxon::Bool checkDatatype=false)
 
  
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:1531
 
  
Further Reading