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

SFTime Class Reference

Encapsulates an SFTime value. More...

Inheritance diagram for SFTime:

FieldValue List of all members.

Public Methods

 SFTime (double value=0.0) throw ()
 Constructor.

virtual ~SFTime () throw ()
 Destructor.

double get () const throw ()
 Get value.

void set (double value) throw ()
 Set 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 &) const
 Print to an output stream.


Private Attributes

double value

Detailed Description

Encapsulates an SFTime value.


Constructor & Destructor Documentation

SFTime double    value = 0.0 throw () [explicit]
 

Constructor.

Parameters:
value initial value

~SFTime   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 SFString.

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.

double get   const throw ()
 

Get value.

Returns:
the value.

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

Print to an output stream.

Parameters:
out an output stream.

Implements FieldValue.

void set double    value throw ()
 

Set value.

Parameters:
value the new value

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

Get the FieldValue::Type associated with this class.

Returns:
FieldValue::sftime.

Implements FieldValue.