#include <it_bus/reflect/union.h>
Inheritance diagram for IT_Reflect::Union:
Definition at line 14 of file union.h.
Public Member Functions | |
Union () throw (()) | |
Constructor. | |
virtual | ~Union () throw (()) |
Destructor. | |
virtual size_t | get_member_count () const=0 throw ((ReflectException)) |
Returns the number of members defined in the union. | |
virtual const IT_Bus::QName & | get_member_type (size_t index) const=0 throw ((ReflectException)) |
Returns the QName of the member at the specified index. | |
virtual size_t | get_selected_member_index () const=0 throw ((ReflectException)) |
Returns the index of the selected member. | |
virtual const Reflection * | get_selected_member () const=0 throw ((ReflectException)) |
Returns a read-only reflection object of the selected member. | |
virtual Reflection * | use_member (size_t index)=0 throw ((ReflectException)) |
Returns a reflection object of the member at the specified index that can be used to modify the member. | |
virtual void | set_no_member ()=0 throw ((ReflectException)) |
Set the union so that no members are selected. |
virtual size_t IT_Reflect::Union::get_member_count | ( | ) | const throw ((ReflectException)) [pure virtual] |
Returns the number of members defined in the union.
ReflectException |
Implemented in IT_Reflect::UnionImpl.
virtual const IT_Bus::QName& IT_Reflect::Union::get_member_type | ( | size_t | index | ) | const throw ((ReflectException)) [pure virtual] |
Returns the QName of the member at the specified index.
index | the member index |
ReflectException | If the index is out of bounds |
Implemented in IT_Reflect::UnionImpl.
virtual size_t IT_Reflect::Union::get_selected_member_index | ( | ) | const throw ((ReflectException)) [pure virtual] |
Returns the index of the selected member.
ReflectException | If no member is selected |
virtual const Reflection* IT_Reflect::Union::get_selected_member | ( | ) | const throw ((ReflectException)) [pure virtual] |
Returns a read-only reflection object of the selected member.
ReflectException | If no member is selected |
virtual Reflection* IT_Reflect::Union::use_member | ( | size_t | index | ) | throw ((ReflectException)) [pure virtual] |
Returns a reflection object of the member at the specified index that can be used to modify the member.
The member is selected if necessary.
index | the member index |
ReflectException | If the index is out of bounds |
virtual void IT_Reflect::Union::set_no_member | ( | ) | throw ((ReflectException)) [pure virtual] |