Diana  0.8.3
Public Member Functions | Friends
IDianaArrayStringParameterSpec Class Reference

#include <IDianaParameter.hpp>

Inheritance diagram for IDianaArrayStringParameterSpec:
ICapeParameterSpec ICapeIdentification DianaArrayStringParameterSpec

List of all members.

Public Member Functions

virtual const
Common::Types::CapeArrayString
DefaultValue () const =0 throw (Common::Error::ECapeUnknown)
virtual const
Common::Types::CapeArrayString
OptionList () const =0 throw (Common::Error::ECapeUnknown)
virtual Common::Types::CapeBoolean RestrictedToList () const =0 throw (Common::Error::ECapeUnknown)
virtual Common::Types::CapeBoolean Validate (Common::Types::CapeString value, Common::Types::CapeString &message)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeNoImpl)

Friends

std::ostream & operator<< (std::ostream &os, const IDianaArrayStringParameterSpec &pspec)

Detailed Description

Array of strings parameter specification. Specification defines options list and default value.


Member Function Documentation

virtual const Common::Types::CapeArrayString& DefaultValue ( ) const throw (Common::Error::ECapeUnknown) [pure virtual]

Gets the default value that the parameter will take. Since it does not indicate an index of the option list, it is allowed to set any default value when the optionList is empty.

Implemented in DianaArrayStringParameterSpec.

virtual const Common::Types::CapeArrayString& OptionList ( ) const throw (Common::Error::ECapeUnknown) [pure virtual]

Gets the list of possible values that the parameter may take. If attribute restrictedToList is false, then the parameter may also accept other values.

Implemented in DianaArrayStringParameterSpec.

States whether the parameter allows to set values different to the ones contained in the option list.

Implemented in DianaArrayStringParameterSpec.

Validates whether the string argument is accepted by the parameter as a valid value. It returns a flag to indicate the success or failure of the validation together with a text message which can be used to convey the reasoning to the client/user.

Parameters:
valuethe value of the parameter to validate
messagemessage conveying information regarding the validation

Implemented in DianaArrayStringParameterSpec.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const IDianaArrayStringParameterSpec pspec 
) [friend]

ostream output operator for the ICapeOptionParameterSpec class.


The documentation for this class was generated from the following file: