Diana  0.8.3
Public Member Functions | Protected Attributes
DianaArrayStringParameterSpec Class Reference

#include <DianaParameter.hpp>

Inheritance diagram for DianaArrayStringParameterSpec:
IDianaArrayStringParameterSpec ICapeParameterSpec ICapeIdentification

List of all members.

Public Member Functions

 DianaArrayStringParameterSpec (const Common::Types::CapeString &name, const Common::Types::CapeString &description=Common::Types::CapeStringUNDEFINED)
 DianaArrayStringParameterSpec (const Common::Types::CapeString &name, const Common::Types::CapeString &description, const Common::Types::CapeArrayString &_defaultValue, const Common::Types::CapeArrayString &_optionList)
Common::Identification::ICapeIdentificationclone () throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
const Common::Types::CapeStringGetComponentName () const throw (Common::Error::ECapeUnknown)
void SetComponentName (const Common::Types::CapeString &_name) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
const Common::Types::CapeStringGetComponentDescription () const throw (Common::Error::ECapeUnknown)
void SetComponentDescription (const Common::Types::CapeString &_description) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
Common::Parameter::CapeParamType Type () const throw (Common::Error::ECapeUnknown)
Common::Types::CapeVariant Dimensionality () const throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
const
Common::Types::CapeArrayString
DefaultValue () const throw (Common::Error::ECapeUnknown)
const
Common::Types::CapeArrayString
OptionList () const throw (Common::Error::ECapeUnknown)
Common::Types::CapeBoolean RestrictedToList () const throw (Common::Error::ECapeUnknown)
Common::Types::CapeBoolean Validate (Common::Types::CapeString value, Common::Types::CapeString &message) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeNoImpl)

Protected Attributes

Common::Types::CapeString name
 specification name
Common::Types::CapeString description
 specification description
Common::Types::CapeArrayString defaultValue
 parameter default value
Common::Types::CapeArrayString optionList
 parameters list
Common::Types::CapeBoolean bRestricted

Detailed Description

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


Constructor & Destructor Documentation

Constructor with a empty options list.

DianaArrayStringParameterSpec ( const Common::Types::CapeString name,
const Common::Types::CapeString description,
const Common::Types::CapeArrayString _defaultValue,
const Common::Types::CapeArrayString _optionList 
)

Constructor.


Member Function Documentation

Creates a new copy in the memory of the DianaOptionParameterSpec object.

Reimplemented from ICapeIdentification.

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.

Implements IDianaArrayStringParameterSpec.

Gets the dimensionality of the parameter for which this is the specification. The dimensionality represents the physical dimensional axes of this parameter. It is expected that the dimensionality must cover at least 6 fundamental axes (length, mass, time, angle, temperature and charge).

Implements ICapeParameterSpec.

gets the description of the component.

Implements ICapeIdentification.

gets the name of the component.

Implements ICapeIdentification.

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

Implements IDianaArrayStringParameterSpec.

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

Implements IDianaArrayStringParameterSpec.

sets the description of the component.

Parameters:
_descriptionthe description of the component

Implements ICapeIdentification.

sets the name of the component.

Parameters:
_namethe name of the component

Implements ICapeIdentification.

Returns option type (CAPE_OPTION).

Implements ICapeParameterSpec.

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

Implements IDianaArrayStringParameterSpec.


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