jaula API Reference  version 1.4.0
JAULA::Value_Boolean Class Reference

Class for handling boolean values. More...

#include <jaula_value_boolean.h>

Inheritance diagram for JAULA::Value_Boolean:
JAULA::Value

Public Member Functions

bool getData (void) const
 Retrieves the value contained by the instance.
virtual void repr (std::ostream &ostr) const
 Represents the instance in a stream.
void set (bool data)
 Establishes the contents of the instance.
virtual void set (Value const &origin) throw (Bad_Data_Type)
 Copies the contents of one instance into another.
 Value_Boolean (bool data=false)
 Constructor.
virtual ~Value_Boolean ()
 Destructor.

Private Attributes

bool data_
 Container to hold the value itself.

Detailed Description

Class for handling boolean values.

This class is a container for JSON boolean values
Author:
Kombo Morongo <morongo666@gmail.com>

Constructor & Destructor Documentation

JAULA::Value_Boolean::Value_Boolean ( bool  data = false)

Constructor.

Parameters:
dataInitial value to be hold by the conatiner

Destructor.


Member Function Documentation

bool JAULA::Value_Boolean::getData ( void  ) const

Retrieves the value contained by the instance.

References data_.

Referenced by JAULA::Value::duplicate(), and set().

void JAULA::Value_Boolean::repr ( std::ostream &  ostr) const [virtual]

Represents the instance in a stream.

Parameters:
ostrStream where the instance is to be represented.
Description
writes the instance content in JSON notation in a stream.

Implements JAULA::Value.

References data_.

void JAULA::Value_Boolean::set ( bool  data)

Establishes the contents of the instance.

Parameters:
dataValue to assign to the instance

References data_.

void JAULA::Value_Boolean::set ( Value const &  origin) throw (Bad_Data_Type) [virtual]

Copies the contents of one instance into another.

Parameters:
originReference to the value to be copied.
Exceptions:
Bad_Data_TypeThis exception is launched in case that origin and destination value types are different.

Reimplemented from JAULA::Value.

References JAULA::Exception::addOrigin(), getData(), and JAULA::Value::set().


Field Documentation

Container to hold the value itself.

Referenced by getData(), repr(), and set().


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