#include <it_bus/reflect/model_group.h>
Inheritance diagram for IT_Reflect::ModelGroup:
They all share this common API.
Definition at line 15 of file model_group.h.
Public Member Functions | |
ModelGroup () IT_THROW_DECL(()) | |
Constructor. | |
virtual | ~ModelGroup () IT_THROW_DECL(()) |
Destructor. | |
virtual size_t | get_element_count () const IT_THROW_DECL((ReflectException))=0 |
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((ReflectException))=0 |
Get the name of the ith element. | |
virtual const Reflection * | get_element (size_t i) const IT_THROW_DECL((ReflectException))=0 |
Get read-only reflection of the i'th element, that is the element whos name is get_element_names()[i]. | |
virtual const Reflection * | get_element (const IT_Bus::QName &name) const IT_THROW_DECL((ReflectException))=0 |
Get read-only reflection of named element. | |
virtual Reflection * | use_element (size_t i) IT_THROW_DECL((ReflectException))=0 |
Use the element at the specified index. | |
virtual Reflection * | use_element (const IT_Bus::QName &name) IT_THROW_DECL((ReflectException))=0 |
Use the named element. |
virtual const Reflection* IT_Reflect::ModelGroup::get_element | ( | const IT_Bus::QName & | name | ) | const [pure virtual] |
Get read-only reflection of named element.
For a choice, the named element must be current.
name | Name of element. |
ReflectException | if name is invalid or this is a choice and named element is not current. |
virtual const Reflection* IT_Reflect::ModelGroup::get_element | ( | size_t | i | ) | const [pure virtual] |
Get read-only reflection of the i'th element, that is the element whos name is get_element_names()[i].
For a choice the i'th element must be the current element.
ReflectException | if i is out of bounds, or this is a choice and the i'th element is not current. |
virtual size_t IT_Reflect::ModelGroup::get_element_count | ( | ) | const [pure virtual] |
Get the number of elements defined in this object's schema.
ReflectException |
Implemented in IT_Reflect::ModelGroupImpl.
virtual const IT_Bus::QName& IT_Reflect::ModelGroup::get_element_name | ( | size_t | i | ) | const [pure virtual] |
Get the name of the ith element.
ReflectException |
Implemented in IT_Reflect::ModelGroupImpl.
virtual Reflection* IT_Reflect::ModelGroup::use_element | ( | const IT_Bus::QName & | name | ) | [pure 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. |
Implemented in IT_Reflect::ModelGroupImpl.
virtual Reflection* IT_Reflect::ModelGroup::use_element | ( | size_t | i | ) | [pure 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. |
Implemented in IT_Reflect::ModelGroupImpl.