10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::json::JSONString Class Referenceabstract

#include <JSONString.h>

Detailed Description

JSON string element.

Inheritance diagram for tenduke::json::JSONString:
tenduke::json::JSONElement tenduke::json::cjson::CjsonString tenduke::test::mocks::JSONStringMock

Public Member Functions

virtual std::string getValue () const =0
 Returns the value of this string.
 
- Public Member Functions inherited from tenduke::json::JSONElement
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.
 

Additional Inherited Members

- Public Types inherited from tenduke::json::JSONElement
enum  Type {
  UNDEFINED , NULLISH , OBJECT , ARRAY ,
  NUMBER , STRING , BOOLEAN
}
 Type of the element.
 
- Static Public Member Functions inherited from tenduke::json::JSONElement
static std::string typeToString (const enum Type type)
 Converts the type to string.
 

Member Function Documentation

◆ getValue()

virtual std::string tenduke::json::JSONString::getValue ( ) const
pure virtual

Returns the value of this string.

Returns
-

Implemented in tenduke::json::cjson::CjsonString.


The documentation for this class was generated from the following file: