ejson::Boolean Class Reference

#include <Boolean.hpp>

Inheritance diagram for ejson::Boolean:
ejson::Value

Public Member Functions

 Boolean (ememory::SharedPtr< ejson::internal::Value > _internalValue)
 
 Boolean (const ejson::Boolean &_obj)
 
 Boolean (bool _value=false)
 
ejson::Booleanoperator= (const ejson::Boolean &_obj)
 
void set (bool _value)
 
bool get (bool _errorValue=false) 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 Boolean interface: true/false.

Constructor & Destructor Documentation

§ Boolean() [1/3]

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

Constructor.

Parameters
[in]_internalValueInternal Value to set data

§ Boolean() [2/3]

ejson::Boolean::Boolean ( const ejson::Boolean _obj)

Copy constructor.

Parameters
[in]_objObject to copy

§ Boolean() [3/3]

ejson::Boolean::Boolean ( bool  _value = false)

Constructor.

Parameters
[in]_valuebool value to store

Member Function Documentation

§ get()

bool ejson::Boolean::get ( bool  _errorValue = false) const

get the current element Value.

Parameters
[in]_errorValueValue return if no value Exist
Returns
the reference of the string value.

§ operator=()

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

Copy constructor.

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

§ set()

void ejson::Boolean::set ( bool  _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: