ejson::String Class Reference

#include <String.hpp>

Inheritance diagram for ejson::String:
ejson::Value

Public Member Functions

 String (ememory::SharedPtr< ejson::internal::Value > _internalValue)
 
 String (const ejson::String &_obj)
 
 String (const std::string &_value="")
 
ejson::Stringoperator= (const ejson::String &_obj)
 
void set (const std::string &_value)
 
std::string get (const std::string &_errorValue="") const
 
- Public Member Functions inherited from ejson::Value
enum ejson::valueType getType () const
 
 Value (const ememory::SharedPtr< ejson::internal::Value > &_internalValue)
 
 Value ()
 
virtual ~Value ()=default
 
void display () const
 
bool exist () const
 
ejson::Document toDocument ()
 
const ejson::Document toDocument () const
 
ejson::Array toArray ()
 
const ejson::Array toArray () const
 
ejson::Object toObject ()
 
const ejson::Object toObject () const
 
ejson::String toString ()
 
const ejson::String toString () const
 
ejson::Number toNumber ()
 
const ejson::Number toNumber () const
 
ejson::Boolean toBoolean ()
 
const ejson::Boolean toBoolean () const
 
ejson::Null toNull ()
 
const ejson::Null toNull () const
 
bool isDocument () const
 
bool isArray () const
 
bool isObject () const
 
bool isString () const
 
bool isNumber () const
 
bool isBoolean () const
 
bool isNull () const
 
void clear ()
 
bool transfertIn (ejson::Value &_obj)
 
ejson::Value clone () const
 
std::string generateHumanString () const
 
std::string generateMachineString () const
 

Additional Inherited Members

- Protected Attributes inherited from ejson::Value
ememory::SharedPtr< ejson::internal::Valuem_data
 

Detailed Description

ejson String interface.

Constructor & Destructor Documentation

§ String() [1/3]

ejson::String::String ( ememory::SharedPtr< ejson::internal::Value _internalValue)

Constructor.

Parameters
[in]_internalValueInternal Value to set data

§ String() [2/3]

ejson::String::String ( const ejson::String _obj)

Copy constructor.

Parameters
[in]_objObject to copy

§ String() [3/3]

ejson::String::String ( const std::string _value = "")

Constructor.

Parameters
[in]_valueString value to set

Member Function Documentation

§ get()

std::string ejson::String::get ( const std::string _errorValue = "") const

get the current element Value.

Parameters
[in]_errorValueThe return value if an error occured.
Returns
the reference of the string value.

§ operator=()

ejson::String& ejson::String::operator= ( const ejson::String _obj)

Copy constructor.

Parameters
[in]_objObject to copy
Returns
Local reference on this object

§ set()

void ejson::String::set ( const std::string _value)

set the value of the node.

Parameters
[in]_valueNew value of the node.

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