IT_Reflect::ModelGroup Class Reference

#include <it_bus/reflect/model_group.h>

Inheritance diagram for IT_Reflect::ModelGroup:

IT_Reflect::ComplexType IT_Reflect::Reflection IT_Bus::RefCountedBase IT_Reflect::Choice IT_Reflect::ModelGroupImpl IT_Reflect::ModelGroupWithSubstitutables IT_ContextAttributes::IT_EmbeddedTypeChoiceReflection IT_ContextAttributes::IT_SecurityTokenReferenceTypeChoiceReflection IT_ContextAttributes::IT_TimestampType_1ChoiceReflection IT_Bus::IT_ReferencePortReflection IT_Bus::IT_ReferenceReflection IT_ContextAttributes::IT_AcknowledgementIntervalReflection IT_ContextAttributes::IT_BaseRetransmissionIntervalReflection IT_ContextAttributes::IT_BusSecurity_1Reflection IT_ContextAttributes::IT_ClientConfiguration_1Reflection IT_ContextAttributes::IT_ClientNamingPolicyType_1Reflection IT_ContextAttributes::IT_clientType_1Reflection IT_ContextAttributes::IT_ConnectionPolicyType_1Reflection IT_ContextAttributes::IT_CORBAAttributesTypeReflection IT_ContextAttributes::IT_CredentialsType_1Reflection IT_ContextAttributes::IT_DefaultConnectionPolicyType_1Reflection IT_ContextAttributes::IT_EmbeddedTypeChoiceReflection IT_ContextAttributes::IT_ExponentialBackoffReflection IT_ContextAttributes::IT_InactivityTimeoutReflection IT_ContextAttributes::IT_JMSClientHeadersType_1Reflection IT_ContextAttributes::IT_JMSConnectionSecurityInfoTypeReflection IT_ContextAttributes::IT_JMSHeadersTypeDataReflection IT_ContextAttributes::IT_JMSPropertyTypeReflection IT_ContextAttributes::IT_JMSServerHeadersType_1Reflection IT_ContextAttributes::IT_MaxUnAcknowledgedMessagesThresholdReflection IT_ContextAttributes::IT_MQAttributesType_1Reflection IT_ContextAttributes::IT_mqClientType_1Reflection IT_ContextAttributes::IT_MQConnectionAttributesType_1Reflection IT_ContextAttributes::IT_MQMessageAttributesType_1Reflection IT_ContextAttributes::IT_mqServerType_1Reflection IT_ContextAttributes::IT_ReferenceTypeReflection IT_ContextAttributes::IT_RMPoliciesTypeReflection IT_ContextAttributes::IT_SecurityHeaderTypeReflection IT_ContextAttributes::IT_SecurityTokenReferenceTypeChoiceReflection IT_ContextAttributes::IT_ServerConfiguration_1Reflection IT_ContextAttributes::IT_ServerNamingPolicyType_1Reflection IT_ContextAttributes::IT_serverType_1Reflection IT_ContextAttributes::IT_SOAPAttachmentPartInfoArrayReflection IT_ContextAttributes::IT_SOAPAttachmentPartInfoReflection IT_ContextAttributes::IT_tExtensibilityElementDataReflection IT_ContextAttributes::IT_TibrvType_1Reflection IT_ContextAttributes::IT_TimestampType_1ChoiceReflection IT_ContextAttributes::IT_TimestampTypeReflection IT_ContextAttributes::IT_TransformationParametersTypeReflection IT_ContextAttributes::IT_UsernameTokenTypeReflection List of all members.

Detailed Description

The model group types are sequence, choice and all.

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::QNameget_element_name (size_t i) const IT_THROW_DECL((ReflectException))=0
 Get the name of the ith element.
virtual const Reflectionget_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 Reflectionget_element (const IT_Bus::QName &name) const IT_THROW_DECL((ReflectException))=0
 Get read-only reflection of named element.
virtual Reflectionuse_element (size_t i) IT_THROW_DECL((ReflectException))=0
 Use the element at the specified index.
virtual Reflectionuse_element (const IT_Bus::QName &name) IT_THROW_DECL((ReflectException))=0
 Use the named element.


Member Function Documentation

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.

Parameters:
name Name of element.
Returns:
Reflection of named element. Caller must _remove_ref().
Exceptions:
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.

Returns:
Reflection of element at the specified index. Caller must _remove_ref()
Exceptions:
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.

Returns:
the number of elements in the schema
Exceptions:
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.

Returns:
the QName of the element at the specified index
Exceptions:
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.

Parameters:
name of the element.
Returns:
modifiable reflection of the element. Caller must _remove_ref().
Exceptions:
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.

Precondition:
i must be less than get_element_count()
Parameters:
index of element.
Returns:
modifiable reflection of the element. Caller must _remove_ref().
Exceptions:
ReflectException if i is out of bounds.

Implemented in IT_Reflect::ModelGroupImpl.


Generated on Thu Sep 7 11:41:01 2006 for Artix by  doxygen 1.4.7