Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

SFBool Class Reference

Encapsulates an SFBool value. More...

Inheritance diagram for SFBool:

FieldValue List of all members.

Public Methods

 SFBool (bool value=false) throw ()
 Constructor.

virtual ~SFBool () throw ()
 Destructor.

bool get () const throw ()
 Get the value.

void set (bool value) throw ()
 Set the value.

virtual std::auto_ptr< FieldValueclone () const throw (std::bad_alloc)
 Virtual copy constructor.

virtual FieldValueassign (const FieldValue &value) throw (std::bad_cast)
 Virtual assignment.

virtual Type type () const throw ()
 Get the FieldValue::Type associated with this class.


Private Methods

virtual void print (std::ostream &out) const
 Print to an output stream.


Private Attributes

bool value

Detailed Description

Encapsulates an SFBool value.


Constructor & Destructor Documentation

SFBool bool    value = false throw () [explicit]
 

Constructor.

Parameters:
value initial value

~SFBool   throw () [virtual]
 

Destructor.


Member Function Documentation

FieldValue & assign const FieldValue   value throw (std::bad_cast) [virtual]
 

Virtual assignment.

Parameters:
value the new value to give the object.
Returns:
a reference to the object.
Exceptions:
std::bad_cast if value is not an SFBool.

Implements FieldValue.

std::auto_ptr< FieldValue > clone   const throw (std::bad_alloc) [virtual]
 

Virtual copy constructor.

Returns:
a pointer to a copy of the object.
Exceptions:
std::bad_alloc if memory allocation fails.

Implements FieldValue.

bool get   const throw ()
 

Get the value.

Returns:
the value of this SFBool

void print std::ostream &    out const [private, virtual]
 

Print to an output stream.

Parameters:
out an output stream.

Implements FieldValue.

void set bool    value throw ()
 

Set the value.

Parameters:
value the new value

FieldValue::Type type   const throw () [virtual]
 

Get the FieldValue::Type associated with this class.

Returns:
FieldValue::sfbool.

Implements FieldValue.