30 #ifndef PT_JSON_FLOAT_H
31 #define PT_JSON_FLOAT_H
33 #include <Pt/Json/Api.h>
34 #include <Pt/Json/Node.h>
56 void setValue(
double n)
62 inline static const Node::Type nodeId()
77 return nodeCast<Float>(node);
86 return nodeCast<Float>(node);
95 return nodeCast<Float>(node);
104 return nodeCast<Float>(node);
111 #endif // nclude guard
Float & toFloat(Node &node)
Casts a generic node to a float node.
Definition: Float.h:93
Represents a float.
Definition: Float.h:42
Float()
Constructor.
Definition: Float.h:47
JSON document node.
Definition: Node.h:51
const Float * toFloat(const Node *node)
Casts a generic node to a float node.
Definition: Float.h:84
const Float & toFloat(const Node &node)
Casts a generic node to a float node.
Definition: Float.h:102
Float * toFloat(Node *node)
Casts a generic node to a float node.
Definition: Float.h:75