IT_Reflect::ValueImplT< T > Class Template Reference

#include <it_bus/reflect/value_impl_t.h>

Inheritance diagram for IT_Reflect::ValueImplT< T >:

IT_Reflect::Value< T > IT_Bus::AnySimpleType IT_Reflect::BuiltInType IT_Bus::AnyType IT_Reflect::SimpleType IT_Bus::ImplementationDetails IT_Reflect::Reflection IT_Bus::RefCountedBase List of all members.

Detailed Description

template<class T>
class IT_Reflect::ValueImplT< T >

Template implementation of value type reflection.

Definition at line 19 of file value_impl_t.h.

Public Member Functions

 ValueImplT () throw (())
 Constructor.
 ValueImplT (const T &value) throw (())
 Constructor.
 ~ValueImplT () throw (())
 Destructor.
ValueImplToperator= (const T &value) throw (())
 operator T & () throw (())
 operator const T & () const throw (())
virtual const T & get_value () const throw (())
 Get the value.
virtual T & get_value () throw (())
 Get the value.
virtual void set_value (const T &value) throw (())
 Set the value.
virtual const IT_Bus::QNameget_type_name () const throw (())
 Get the type name of the reflected object.
virtual IT_Bus::AnyType::Kind get_type_kind () const throw (())
 Get the kind of the reflected object.
BuiltInType::ValueKind get_value_kind () const throw (())
 Get the kind of value represented by this simple type.
virtual IT_Bus::AnyTypeclone () const throw ((ReflectException))
 Create a new object with the same contents.
virtual const IT_Bus::AnyTypeget_reflected () const throw (())
 Get the reflected object.
virtual IT_Bus::AnyTypeget_reflected () throw (())
 Get the reflected object.
void copy (const IT_Reflect::BuiltInType *other) throw ((ReflectException))
 Copy another type into the instance.
virtual IT_Bus::Boolean equals (const IT_Reflect::BuiltInType *other) const throw (())
 Determine if two instances are equal.
virtual const IT_Bus::QNameget_type () const
 Returns the IT_Bus::QName for the type.
virtual AnyType::Kind get_kind () const
 Returns the IT_Bus::AnyType::Kind for the type.
virtual IT_Reflect::Reflectionget_reflection () throw (())
 Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
virtual const IT_Reflect::Reflectionget_reflection () const throw (())
 Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
virtual void read (const IT_Bus::QName &name, IT_Bus::ComplexTypeReader &reader) throw ((IT_Bus::DeserializationException))
 Read the value into the instance.
virtual void write (const IT_Bus::QName &name, IT_Bus::ComplexTypeWriter &writer) const throw ((IT_Bus::SerializationException))
 Write the content of the instance.
virtual void read_value (IT_Bus::AnySimpleTypeReader &reader) throw ((IT_Bus::DeserializationException))
 Read the value into the instance.
virtual void write_value (IT_Bus::AnySimpleTypeWriter &writer) const throw ((IT_Bus::SerializationException))
 Write the instance value.
virtual IT_Bus::AnyTypecopy (const IT_Bus::AnyType &rhs)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.

Private Attributes

m_data


Member Function Documentation

template<class T>
const T & IT_Reflect::ValueImplT< T >::get_value (  )  const throw (()) [virtual]

Get the value.

Returns:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 195 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.

template<class T>
T & IT_Reflect::ValueImplT< T >::get_value (  )  throw (()) [virtual]

Get the value.

Returns:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 202 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.

template<class T>
void IT_Reflect::ValueImplT< T >::set_value ( const T &  value  )  throw (()) [virtual]

Set the value.

Parameters:
reference to the value class
Exceptions:
ReflectException 

Implements IT_Reflect::Value< T >.

Definition at line 209 of file value_impl_t.h.

template<class T>
const IT_Bus::QName & IT_Reflect::ValueImplT< T >::get_type_name (  )  const throw (()) [virtual]

Get the type name of the reflected object.

Returns:
QName of the reflected object

Implements IT_Reflect::Reflection.

Definition at line 218 of file value_impl_t.h.

References IT_Bus::SchemaTypeTraits< T >::type_name().

template<class T>
IT_Bus::AnyType::Kind IT_Reflect::ValueImplT< T >::get_type_kind (  )  const throw (()) [virtual]

Get the kind of the reflected object.

Returns:
AnyType::Kind of the reflected object.

Implements IT_Reflect::Reflection.

Definition at line 226 of file value_impl_t.h.

template<class T>
BuiltInType::ValueKind IT_Reflect::ValueImplT< T >::get_value_kind (  )  const throw (()) [virtual]

Get the kind of value represented by this simple type.

Returns:
ValueKind enum
Exceptions:
ReflectException 

Implements IT_Reflect::BuiltInType.

Definition at line 366 of file value_impl_t.h.

template<class T>
IT_Bus::AnyType * IT_Reflect::ValueImplT< T >::clone (  )  const throw ((ReflectException)) [virtual]

Create a new object with the same contents.

Returns:
the new object, caller must _remove_ref().
Exceptions:
ReflectException if there is a problem with run-time type information for this object.

Implements IT_Reflect::Reflection.

Definition at line 248 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.

template<class T>
const IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::get_reflected (  )  const throw (()) [virtual]

Get the reflected object.

Returns:
reference to AnyType containing the reflected object

Implements IT_Reflect::Reflection.

Definition at line 234 of file value_impl_t.h.

template<class T>
IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::get_reflected (  )  throw (()) [virtual]

Get the reflected object.

Returns:
reference to AnyType containing the reflected object

Implements IT_Reflect::Reflection.

Definition at line 241 of file value_impl_t.h.

template<class T>
void IT_Reflect::ValueImplT< T >::copy ( const IT_Reflect::BuiltInType other  )  throw ((ReflectException))

Copy another type into the instance.

Parameters:
pointer to another type

Definition at line 336 of file value_impl_t.h.

References IT_Reflect::Value< T >::get_value().

template<class T>
IT_Bus::Boolean IT_Reflect::ValueImplT< T >::equals ( const IT_Reflect::BuiltInType other  )  const throw (()) [virtual]

Determine if two instances are equal.

Returns:
boolean indicating equality

Definition at line 351 of file value_impl_t.h.

References IT_Reflect::Value< T >::get_value().

template<class T>
const IT_Bus::QName & IT_Reflect::ValueImplT< T >::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
IT_Bus::QName.

Implements IT_Bus::AnyType.

Definition at line 257 of file value_impl_t.h.

References IT_Bus::SchemaTypeTraits< T >::type_name().

template<class T>
IT_Bus::AnyType::Kind IT_Reflect::ValueImplT< T >::get_kind (  )  const [virtual]

Returns the IT_Bus::AnyType::Kind for the type.

Returns:
AnyType::SIMPLE.

Reimplemented from IT_Bus::AnySimpleType.

Definition at line 264 of file value_impl_t.h.

template<class T>
IT_Reflect::Reflection * IT_Reflect::ValueImplT< T >::get_reflection (  )  throw (()) [virtual]

Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Returns:
IT_Reflect::Reflection
Exceptions:
IT_Reflect::ReflectException 

Reimplemented from IT_Bus::AnyType.

Definition at line 272 of file value_impl_t.h.

References IT_Bus::RefCountedBase::_add_ref().

template<class T>
const IT_Reflect::Reflection * IT_Reflect::ValueImplT< T >::get_reflection (  )  const throw (()) [virtual]

Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Returns:
IT_Reflect::Reflection
Exceptions:
IT_Reflect::ReflectException 

Reimplemented from IT_Bus::AnyType.

Definition at line 280 of file value_impl_t.h.

References IT_Bus::RefCountedBase::_add_ref().

template<class T>
void IT_Reflect::ValueImplT< T >::read_value ( IT_Bus::AnySimpleTypeReader reader  )  throw ((IT_Bus::DeserializationException)) [virtual]

Read the value into the instance.

Derived classes implement this method.

Implements IT_Bus::AnySimpleType.

Definition at line 308 of file value_impl_t.h.

template<class T>
void IT_Reflect::ValueImplT< T >::write_value ( IT_Bus::AnySimpleTypeWriter writer  )  const throw ((IT_Bus::SerializationException)) [virtual]

Write the instance value.

Derived classes implement this method.

Implements IT_Bus::AnySimpleType.

Definition at line 317 of file value_impl_t.h.

template<class T>
IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::copy ( const IT_Bus::AnyType rhs  )  [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 326 of file value_impl_t.h.

References IT_Reflect::ValueImplT< T >::m_data.


Generated on Tue Mar 20 15:28:36 2007 for Artix by  doxygen 1.5.1-p1