#include <it_bus/reflect/model_group_impl.h>
Inheritance diagram for IT_Reflect::ModelGroupImpl:
Definition at line 20 of file model_group_impl.h.
Public Member Functions | |
ModelGroupImpl (IT_Vector< IT_Bus::QName > &element_names) IT_THROW_DECL(()) | |
Constructor. | |
virtual | ~ModelGroupImpl () IT_THROW_DECL(()) |
Destructor. | |
virtual size_t | get_element_count () const IT_THROW_DECL(()) |
Get the number of elements defined in this object's schema. | |
virtual const IT_Bus::QName & | get_element_name (size_t i) const IT_THROW_DECL(()) |
Get the name of the ith element. | |
virtual Reflection * | use_element (size_t i) IT_THROW_DECL((ReflectException)) |
Use the element at the specified index. | |
virtual Reflection * | use_element (const IT_Bus::QName &element_name) IT_THROW_DECL((ReflectException)) |
Use the named element. | |
Protected Member Functions | |
size_t | find_element (const IT_Bus::QName &name) const IT_THROW_DECL((ReflectException)) |
Obtain the index for the specified element. | |
Private Attributes | |
IT_Vector< IT_Bus::QName > & | m_element_names |
size_t IT_Reflect::ModelGroupImpl::find_element | ( | const IT_Bus::QName & | name | ) | const [protected] |
Obtain the index for the specified element.
QName | of the desired element |
virtual size_t IT_Reflect::ModelGroupImpl::get_element_count | ( | ) | const [virtual] |
Get the number of elements defined in this object's schema.
ReflectException |
Implements IT_Reflect::ModelGroup.
virtual const IT_Bus::QName& IT_Reflect::ModelGroupImpl::get_element_name | ( | size_t | i | ) | const [virtual] |
Get the name of the ith element.
ReflectException |
Implements IT_Reflect::ModelGroup.
virtual Reflection* IT_Reflect::ModelGroupImpl::use_element | ( | const IT_Bus::QName & | element_name | ) | [virtual] |
Use the named element.
Returns a pointer to a reflection object that can be used to modify the element. For a choice this makes the named element current.
name | of the element. |
ReflectException | if name is invalid. |
Implements IT_Reflect::ModelGroup.
virtual Reflection* IT_Reflect::ModelGroupImpl::use_element | ( | size_t | i | ) | [virtual] |
Use the element at the specified index.
Returns a Reflection object that can be used to modify the element. For a choice, makes the element at i current.
index | of element. |
ReflectException | if i is out of bounds. |
Implements IT_Reflect::ModelGroup.