TAO_PortableGroup
2.0.8
|
Default property validator implementation. More...
#include <PG_Default_Property_Validator.h>
Public Member Functions | |
TAO_PG_Default_Property_Validator (void) | |
Constructor. | |
virtual | ~TAO_PG_Default_Property_Validator (void) |
Destructor. | |
virtual void | validate_property (const PortableGroup::Properties &props) |
virtual void | validate_criteria (const PortableGroup::Properties &criteria) |
Private Attributes | |
Pre-initialize property Names. | |
These properties are pre-initialized once to reduce property validation overhead. Note that the InitialNumberReplicas and MinimumNumberReplicas properties are not validated since there are no restrictions imposed by TAO's PortableGroup implementation regarding the number of such members. | |
PortableGroup::Name | membership_ |
PortableGroup::Name | factories_ |
Default property validator implementation.
This Property_Validator verifies that all properties defined in the PortableGroup IDL module are valid. This property validator can be subclassed to validate a different property set.
TAO_PG_Default_Property_Validator::TAO_PG_Default_Property_Validator | ( | void | ) |
Constructor.
TAO_PG_Default_Property_Validator::~TAO_PG_Default_Property_Validator | ( | void | ) | [virtual] |
Destructor.
void TAO_PG_Default_Property_Validator::validate_criteria | ( | const PortableGroup::Properties & | criteria | ) | [virtual] |
Validate the given properties/criteria. All criteria will be validated regardless of whether or not an invalid property was encountered.
The invalid criteria index.
void TAO_PG_Default_Property_Validator::validate_property | ( | const PortableGroup::Properties & | props | ) | [virtual] |
Validate the given properties. Throw an exception when the first invalid property is encountered. The remaining properties will not be validated.