#include <it_bus/reflect/value_impl_t.h>
Inheritance diagram for IT_Reflect::ValueImplT< T >:
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. | |
ValueImplT & | operator= (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::QName & | get_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::AnyType * | clone () const throw ((ReflectException)) |
Create a new object with the same contents. | |
virtual const IT_Bus::AnyType & | get_reflected () const throw (()) |
Get the reflected object. | |
virtual IT_Bus::AnyType & | get_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::QName & | get_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::Reflection * | get_reflection () throw (()) |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance. | |
virtual const IT_Reflect::Reflection * | get_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::AnyType & | copy (const IT_Bus::AnyType &rhs) |
Returns a reference to an AnyType that is a copy of the AnyType parameter. | |
Private Attributes | |
T | m_data |
const T & IT_Reflect::ValueImplT< T >::get_value | ( | ) | const throw (()) [virtual] |
Get the value.
ReflectException |
Implements IT_Reflect::Value< T >.
Definition at line 195 of file value_impl_t.h.
References IT_Reflect::ValueImplT< T >::m_data.
T & IT_Reflect::ValueImplT< T >::get_value | ( | ) | throw (()) [virtual] |
Get the value.
ReflectException |
Implements IT_Reflect::Value< T >.
Definition at line 202 of file value_impl_t.h.
References IT_Reflect::ValueImplT< T >::m_data.
void IT_Reflect::ValueImplT< T >::set_value | ( | const T & | value | ) | throw (()) [virtual] |
Set the value.
reference | to the value class |
ReflectException |
Implements IT_Reflect::Value< T >.
Definition at line 209 of file value_impl_t.h.
const IT_Bus::QName & IT_Reflect::ValueImplT< T >::get_type_name | ( | ) | const throw (()) [virtual] |
Get the type name 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().
IT_Bus::AnyType::Kind IT_Reflect::ValueImplT< T >::get_type_kind | ( | ) | const throw (()) [virtual] |
Get the kind of the reflected object.
Implements IT_Reflect::Reflection.
Definition at line 226 of file value_impl_t.h.
BuiltInType::ValueKind IT_Reflect::ValueImplT< T >::get_value_kind | ( | ) | const throw (()) [virtual] |
Get the kind of value represented by this simple type.
ReflectException |
Implements IT_Reflect::BuiltInType.
Definition at line 366 of file value_impl_t.h.
IT_Bus::AnyType * IT_Reflect::ValueImplT< T >::clone | ( | ) | const throw ((ReflectException)) [virtual] |
Create a new object with the same contents.
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.
const IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::get_reflected | ( | ) | const throw (()) [virtual] |
Get the reflected object.
Implements IT_Reflect::Reflection.
Definition at line 234 of file value_impl_t.h.
IT_Bus::AnyType & IT_Reflect::ValueImplT< T >::get_reflected | ( | ) | throw (()) [virtual] |
Get the reflected object.
Implements IT_Reflect::Reflection.
Definition at line 241 of file value_impl_t.h.
void IT_Reflect::ValueImplT< T >::copy | ( | const IT_Reflect::BuiltInType * | other | ) | throw ((ReflectException)) |
Copy another type into the instance.
pointer | to another type |
Definition at line 336 of file value_impl_t.h.
References IT_Reflect::Value< T >::get_value().
IT_Bus::Boolean IT_Reflect::ValueImplT< T >::equals | ( | const IT_Reflect::BuiltInType * | other | ) | const throw (()) [virtual] |
Determine if two instances are equal.
Definition at line 351 of file value_impl_t.h.
References IT_Reflect::Value< T >::get_value().
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.
Implements IT_Bus::AnyType.
Definition at line 257 of file value_impl_t.h.
References IT_Bus::SchemaTypeTraits< T >::type_name().
IT_Bus::AnyType::Kind IT_Reflect::ValueImplT< T >::get_kind | ( | ) | const [virtual] |
Returns the IT_Bus::AnyType::Kind for the type.
Reimplemented from IT_Bus::AnySimpleType.
Definition at line 264 of file value_impl_t.h.
IT_Reflect::Reflection * IT_Reflect::ValueImplT< T >::get_reflection | ( | ) | throw (()) [virtual] |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
IT_Reflect::ReflectException |
Reimplemented from IT_Bus::AnyType.
Definition at line 272 of file value_impl_t.h.
References IT_Bus::RefCountedBase::_add_ref().
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.
IT_Reflect::ReflectException |
Reimplemented from IT_Bus::AnyType.
Definition at line 280 of file value_impl_t.h.
References IT_Bus::RefCountedBase::_add_ref().
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.
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.
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.
AnyType | to be copied. |
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.