IT_Reflect::ModelGroupImpl Class Reference

#include <it_bus/reflect/model_group_impl.h>

Inheritance diagram for IT_Reflect::ModelGroupImpl:

IT_Reflect::ModelGroup IT_Reflect::ComplexType IT_Reflect::Reflection IT_Bus::RefCountedBase 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

Base implementation for generated sequence, choice and all reflections.

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::QNameget_element_name (size_t i) const IT_THROW_DECL(())
 Get the name of the ith element.
virtual Reflectionuse_element (size_t i) IT_THROW_DECL((ReflectException))
 Use the element at the specified index.
virtual Reflectionuse_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


Member Function Documentation

size_t IT_Reflect::ModelGroupImpl::find_element ( const IT_Bus::QName name  )  const [protected]

Obtain the index for the specified element.

Parameters:
QName of the desired element
Returns:
the index

virtual size_t IT_Reflect::ModelGroupImpl::get_element_count (  )  const [virtual]

Get the number of elements defined in this object's schema.

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

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

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

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.

Implements IT_Reflect::ModelGroup.


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