JSONDefaultPrecision is a singleton that provides a mechanism to control the default precision for output of floating-point JSON values.
More...
#include <json/JSON.h>
JSONDefaultPrecision is a singleton that provides a mechanism to control the default precision for output of floating-point JSON values.
◆ Type
◆ JSONDefaultPrecision()
◆ set()
static void set |
( |
unsigned int |
precision | ) |
|
|
inlinestatic |
◆ reset()
◆ get()
static unsigned int get |
( |
| ) |
|
|
inlinestatic |
◆ instance()
static Type& instance |
( |
| ) |
|
|
inlinestaticinherited |
Returns a reference to the singleton instance.
- Exceptions
-
XSingleton | If the singleton was already destroyed (dead reference) or not yet created (when using ExplicitInstantiation). |
◆ isDestroyed()
static bool isDestroyed |
( |
| ) |
|
|
inlinestaticinherited |
Returns true, if the singleton was already destroyed.
Trying to access it will result in an exception.
◆ makeInstance()
static Type* makeInstance |
( |
| ) |
|
|
inlinestaticprotectedinherited |
◆ destroyInstance()
static void destroyInstance |
( |
void |
| ) |
|
|
inlinestaticprotectedinherited |
◆ singleton::CreateUsingNew< JSONDefaultPrecision >
◆ MIRA_JSON_DEFAULT_PRECISION
const unsigned int MIRA_JSON_DEFAULT_PRECISION = 3 |
|
staticprotected |
Default value if not changed using set().
The documentation for this class was generated from the following file: