IT_Bus::AnySimpleTypeT< T > Class Template Reference

#include <it_bus/any_simple_type_t.h>

Inheritance diagram for IT_Bus::AnySimpleTypeT< T >:

IT_Bus::AnySimpleTypeBaseT< T > IT_Bus::AnySimpleType IT_Bus::AnyType IT_Bus::ImplementationDetails List of all members.

Detailed Description

template<class T>
class IT_Bus::AnySimpleTypeT< T >

Template implementation of AnySimpleType that holds a primitive type as a member variable.

Review method declarations in the header file.

Definition at line 65 of file any_simple_type_t.h.

Public Member Functions

 AnySimpleTypeT () throw (())
 AnySimpleTypeT (const T &value) throw (())
virtual ~AnySimpleTypeT () throw (())
virtual void read (const QName &name, ComplexTypeReader &reader) throw ((DeserializationException))
 Read the value into the instance.
virtual void read_value (AnySimpleTypeReader &reader) throw ((DeserializationException))
 Read the value into the instance.
virtual AnyTypecopy (const AnyType &rhs)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.
virtual const T & get_value () const
T & get_value ()

Private Attributes

m_value


Member Function Documentation

template<class T>
void IT_Bus::AnySimpleTypeT< T >::read_value ( AnySimpleTypeReader reader  )  throw ((DeserializationException)) [inline, virtual]

Read the value into the instance.

Derived classes implement this method.

Implements IT_Bus::AnySimpleType.

Definition at line 292 of file any_simple_type_t.h.

template<class T>
AnyType & IT_Bus::AnySimpleTypeT< T >::copy ( const AnyType rhs  )  [inline, virtual]

Returns a reference to an AnyType that is a copy of the AnyType parameter.

Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.

Parameters:
AnyType to be copied.
Returns:
A reference to AnyType.
Exceptions:
IT_Bus::Exception with message "Copy not supported"

Reimplemented from IT_Bus::AnyType.

Definition at line 301 of file any_simple_type_t.h.

References IT_Reflect::copy(), IT_Bus::AnySimpleTypeBaseT< T >::get_value(), and IT_Bus::AnySimpleTypeT< T >::m_value.


Generated on Tue Mar 20 15:27:57 2007 for Artix by  doxygen 1.5.1-p1