#include <it_bus_pdk/built_in_type.h>
Inheritance diagram for IT_Bus::BuiltInType< T, TYPE >:
Note: This template can only be used for types that have a working copy constructor and assignment operator.
Definition at line 27 of file built_in_type.h.
Public Types | |
typedef T | ValueType |
Public Member Functions | |
BuiltInType () | |
BuiltInType (const BuiltInType &other) | |
BuiltInType (const T &other) | |
virtual | ~BuiltInType () |
virtual Kind | get_kind () const |
Returns the IT_Bus::AnyType::Kind for the type. | |
BuiltInType & | operator= (const BuiltInType &other) |
AnyType & | copy (const AnyType &other) |
Returns a reference to an AnyType that is a copy of the AnyType parameter. | |
virtual const QName & | get_type () const |
Returns the IT_Bus::QName for the type. | |
virtual void | write (const QName &name, ComplexTypeWriter &writer) const throw ((SerializationException)) |
Write the content of the instance. | |
virtual void | read (const QName &name, ComplexTypeReader &reader) throw ((DeserializationException)) |
Read the value into the instance. | |
virtual const T & | get () const |
Returns the value. | |
virtual T & | get () |
Returns the value. | |
virtual void | set (const T &data) |
Set the data value. | |
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. | |
Private Types | |
typedef BuiltInType | ThisType |
Private Attributes | |
T | m_data |
AnyType::Kind IT_Bus::BuiltInType< T, TYPE >::get_kind | ( | ) | const [virtual] |
Returns the IT_Bus::AnyType::Kind for the type.
Derived subclasses override this method and return the appropriate Kind.
Reimplemented from IT_Bus::AnyType.
Definition at line 158 of file built_in_type.h.
AnyType & IT_Bus::BuiltInType< T, TYPE >::copy | ( | const AnyType & | other | ) | [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 147 of file built_in_type.h.
const QName & IT_Bus::BuiltInType< T, TYPE >::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 165 of file built_in_type.h.
void IT_Bus::BuiltInType< T, TYPE >::write | ( | const QName & | name, | |
ComplexTypeWriter & | writer | |||
) | const throw ((SerializationException)) [virtual] |
Write the content of the instance.
Derived subclasses implement this method.
Implements IT_Bus::AnyType.
Definition at line 172 of file built_in_type.h.
void IT_Bus::BuiltInType< T, TYPE >::read | ( | const QName & | name, | |
ComplexTypeReader & | reader | |||
) | throw ((DeserializationException)) [virtual] |
Read the value into the instance.
Derived subclasses implement this method.
Implements IT_Bus::AnyType.
Definition at line 182 of file built_in_type.h.
const T & IT_Bus::BuiltInType< T, TYPE >::get | ( | ) | const [virtual] |
Returns the value.
NoDataException | if called when is_nil() is true. |
Definition at line 199 of file built_in_type.h.
References IT_Bus::BuiltInType< T, TYPE >::m_data.
Referenced by IT_Bus::BuiltInType< T, TYPE >::operator=().
T & IT_Bus::BuiltInType< T, TYPE >::get | ( | ) | [virtual] |
Returns the value.
NoDataException | if called when is_nil() is true. |
Definition at line 192 of file built_in_type.h.
References IT_Bus::BuiltInType< T, TYPE >::m_data.
IT_Reflect::Reflection * IT_Bus::BuiltInType< T, TYPE >::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 215 of file built_in_type.h.
References IT_Bus::BuiltInType< T, TYPE >::m_data.
const IT_Reflect::Reflection * IT_Bus::BuiltInType< T, TYPE >::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 223 of file built_in_type.h.
References IT_Bus::BuiltInType< T, TYPE >::m_data.