| 
    10Duke Enterprise C++ Client
    
   | 
 
#include <JSONElement.h>
Superclass of JSON elements.
  
Public Types | |
| enum | Type {  UNDEFINED , NULLISH , OBJECT , ARRAY , NUMBER , STRING , BOOLEAN }  | 
| Type of the element.  | |
Public Member Functions | |
| virtual enum Type | getType () const=0 | 
| Returns type of this element.   | |
| virtual std::string | asString () const=0 | 
| Returns string representation of this element.   | |
| bool | isArray () const | 
| Utility to check if this element is JSONArray.   | |
| bool | isBoolean () const | 
| Utility to check if this element is JSONBoolean.   | |
| bool | isNull () const | 
| Utility to check if this element is null.   | |
| bool | isNumber () const | 
| Utility to check if this element is JSONNumber.   | |
| bool | isObject () const | 
| Utility to check if this element is JSONObject.   | |
| bool | isString () const | 
| Utility to check if this element is JSONString.   | |
| bool | isUndefined () const | 
| Utility to check if this element is undefined.   | |
Static Public Member Functions | |
| static std::string | typeToString (const enum Type type) | 
| Converts the type to string.   | |
      
  | 
  pure virtual | 
Returns string representation of this element.
      
  | 
  pure virtual | 
Returns type of this element.
      
  | 
  inline | 
Utility to check if this element is JSONArray.
      
  | 
  inline | 
Utility to check if this element is JSONBoolean.
      
  | 
  inline | 
Utility to check if this element is null.
      
  | 
  inline | 
Utility to check if this element is JSONNumber.
      
  | 
  inline | 
Utility to check if this element is JSONObject.
      
  | 
  inline | 
Utility to check if this element is JSONString.
      
  | 
  inline | 
Utility to check if this element is undefined.
      
  | 
  inlinestatic | 
Converts the type to string.
| type | - |