|
| | EnumOption (OwnerType eOwnerType, const std::string &sName, int32_t nDefaultEnum, const std::string &sDesc, const std::vector< std::tuple< int32_t, std::string, std::string > > &aEnum) noexcept |
| | Constructor. More...
|
| |
| | EnumOption (OwnerType eOwnerType, const std::string &sName, int32_t nDefaultEnum, const std::string &sDesc, bool bReadOnly, bool bVisible, const shared_ptr< Option > &refMaster, const std::vector< Variant > &aMasterValues, const std::vector< std::tuple< int32_t, std::string, std::string > > &aEnum) noexcept |
| | Constructor. More...
|
| |
| | EnumOption (OwnerType eOwnerType, const std::string &sName, int32_t nDefaultEnum, const std::string &sDesc, bool bReadOnly, bool bVisible, const std::vector< std::pair< shared_ptr< Option >, std::vector< Variant >>> &aMastersValues, const std::vector< std::tuple< int32_t, std::string, std::string > > &aEnum) noexcept |
| | Constructor. More...
|
| |
| bool | isValidValue (const Variant &oValue) const noexcept override |
| | Whether the value is valid for this option. More...
|
| |
| std::string | getValueAsCode (const Variant &oValue) const noexcept override |
| | Return a value as code. More...
|
| |
| std::pair< Variant, std::string > | getValueFromCode (const std::string &sCode) const noexcept override |
| | Convert code to value. More...
|
| |
| std::string | getValueAsDescriptive (const Variant &oValue) const noexcept override |
| | Return the value as a human readable string. More...
|
| |
| std::pair< Variant, std::string > | getValueFromString (const std::string &sValue) const noexcept override |
| | Convert string to value. More...
|
| |
| int32_t | size () const noexcept |
| | The total number of enums. More...
|
| |
| std::tuple< int32_t, std::string, std::string > | get (int32_t nIdx) const noexcept |
| | Returns enum data for a given index. More...
|
| |
| int32_t | getEnum (int32_t nIdx) const noexcept |
| |
| const std::string & | getEnumName (int32_t nIdx) const noexcept |
| |
| const std::string & | getEnumDesc (int32_t nIdx) const noexcept |
| |
| int32_t | getIdx (int32_t nEnum) const noexcept |
| | The index of an enum value. More...
|
| |
| const std::string & | getName (int32_t nEnum) const noexcept |
| |
| int32_t | getEnum (const std::string &sEnumName) const noexcept |
| | Get the enum value from the enum name. More...
|
| |
| OwnerType | getOwnerType () const noexcept |
| |
| const std::string & | getName () const noexcept |
| |
| Variant | getDefaultValue () const noexcept |
| |
| const std::string & | getDesc () const noexcept |
| |
| virtual bool | allowsRange () const noexcept |
| | Whether range of values is supported. More...
|
| |
| bool | isReadonly () const noexcept |
| |
| bool | isVisible () const noexcept |
| |
| const std::vector< std::pair< shared_ptr< Option >, std::vector< Variant > > > & | getMastersValues () const noexcept |
| | Get the masters and their corresonding values for which this option is enabled. More...
|
| |
| bool | isSlave () const noexcept |
| |
|
| virtual | ~Option ()=default |
| |
| | Option (OwnerType eOwnerType, const std::string &sName, const Variant &oDefaultValue, const std::string &sDesc) noexcept |
| | Constructor. More...
|
| |
| | Option (OwnerType eOwnerType, const std::string &sName, const Variant &oDefaultValue, const std::string &sDesc, bool bReadOnly, bool bVisible, const shared_ptr< Option > &refMaster, const std::vector< Variant > &aMasterValues) noexcept |
| | One master constructor. More...
|
| |
| | Option (OwnerType eOwnerType, const std::string &sName, const Variant &oDefaultValue, const std::string &sDesc, bool bReadOnly, bool bVisible, const std::vector< std::pair< shared_ptr< Option >, std::vector< Variant >>> &aMastersValues) noexcept |
| | Generic constructor. More...
|
| |