OEMultiParameter¶
template<class TT>
template <class TT> class OEMultiParameter : public OESystem::OEPointerParameter<TT>
OWMultiParameter represents parametera that have three different representations of the values. The three representations are an unsigned , a std::string , and an object representation.
- Following methods are publicly inherited from OEParameter:
AddAlias
andGetAliases
GetKeyless
andSetKeyless
IsSet
andIsSetToString
- The OEMultiParameter class defines the following public methods:
Constructors¶
OEMultiParameter()
OEMultiParameter(const std::string& name, const bool customAllowed)
OEMultiParameter(const OEMultiParameter&)
Default and copy constructors.
Constructs an OEMultiParameter instance using the specified set of parameters. The second argument in the second constructor represents if a custom object (not already defined as a legal entry) could be used as a parameter.
AddLegalEntry¶
bool AddLegalEntry(const unsigned idxKey, const std::string& strKey, const TT& lib)
Add new legal entry for this parameter. The three argument value represents the three representations of the same legal value.
SetValue¶
bool SetValue(const unsigned)
bool SetValue(const std::string&)
bool SetValue(const TT&)
bool SetValue(OEPlatform::oeistream& ifs)
Sets the user-defined value of the parameter.