public

Inheritance Graph

graph BT
	BoolAttribute
	BoolAttribute --> GenericAttribute
	click BoolAttribute "classUtil_1_1BoolAttribute"
	click GenericAttribute "classUtil_1_1GenericAttribute"

Description

Generic attribute to store a Bool value.

Public Types

   
   
typedef BoolAttribute attr_t

Public Functions

   
   
  BoolAttribute(bool _n)
   
  ~BoolAttribute()
   
bool get() const
   
void set(bool newValue)
   
attr_t * clone() const
   
std::string toString() const
   
std::string toJSON() const
   
double toDouble() const
   
float toFloat() const
   
int toInt() const
   
bool toBool() const
   
unsigned int toUnsignedInt() const
   
bool operator==(const GenericAttribute & void) const
Per default, the comparison returns false for unspecified types.

Documentation

typedef
Util::BoolAttribute::attr_t

public
 
 
typedef BoolAttribute attr_t

Defined in Util/GenericAttribute.h:358


function
Util::BoolAttribute::BoolAttribute

public inline explicit
     
     
BoolAttribute( bool _n )

Defined in Util/GenericAttribute.h:360


function
Util::BoolAttribute::~BoolAttribute

public inline virtual
   
   
~BoolAttribute( )

Defined in Util/GenericAttribute.h:362


function
Util::BoolAttribute::get

public const inline
   
   
bool get( ) const

Return the stored boolean value.

Returns

Bool value

Defined in Util/GenericAttribute.h:370


function
Util::BoolAttribute::set

public inline
     
     
void set( bool newValue )

Update the stored boolean value.

Parameters

newValue
New boolean value

Defined in Util/GenericAttribute.h:379


function
Util::BoolAttribute::clone

public const inline virtual
   
   
attr_t * clone( ) const

Create a copy of this object.

Returns

Exact copy.

Defined in Util/GenericAttribute.h:383


function
Util::BoolAttribute::toString

public const inline virtual
   
   
std::string toString( ) const

Convert the object to a human-readable string.

Returns

String representation.

Defined in Util/GenericAttribute.h:384


function
Util::BoolAttribute::toJSON

public const inline virtual
   
   
std::string toJSON( ) const

Convert the object to JavaScript Object Notation (JSON).

Returns

JSON representation;

Defined in Util/GenericAttribute.h:385


function
Util::BoolAttribute::toDouble

public const inline virtual
   
   
double toDouble( ) const

Convert the object to a floating-point value with double precision.

Returns

Floating-point representation with double precision.

Defined in Util/GenericAttribute.h:386


function
Util::BoolAttribute::toFloat

public const inline virtual
   
   
float toFloat( ) const

Convert the object to a floating-point value.

Returns

Floating-point representation.

Defined in Util/GenericAttribute.h:387


function
Util::BoolAttribute::toInt

public const inline virtual
   
   
int toInt( ) const

Convert the object to an integer value.

Returns

Integer representation.

Defined in Util/GenericAttribute.h:388


function
Util::BoolAttribute::toBool

public const inline virtual
   
   
bool toBool( ) const

Convert the object to an boolean value.

Returns

Boolean representation.

Defined in Util/GenericAttribute.h:389


function
Util::BoolAttribute::toUnsignedInt

public const inline virtual
   
   
unsigned int toUnsignedInt( ) const

Convert the object to an unsigned integer value.

Returns

Unsigned integer representation.

Defined in Util/GenericAttribute.h:390


function
Util::BoolAttribute::operator==

public const inline virtual
     
     
bool operator==( const GenericAttribute & void ) const

Per default, the comparison returns false for unspecified types.

Defined in Util/GenericAttribute.h:391