|
LMMS
|
#include <Lv2Options.h>
Public Member Functions | |
| template<typename Opt, typename Arg> | |
| void | initOption (Lv2UridCache::Id key, Arg &&value, LV2_Options_Context context=LV2_OPTIONS_INSTANCE, std::uint32_t subject=0) |
| Initialize an option. | |
| void | createOptionVectors () |
| Fill m_options and m_optionPointers with all options. | |
| const LV2_Options_Option * | feature () const |
| Return the feature. | |
| void | clear () |
Static Public Member Functions | |
| static bool | isOptionSupported (LV2_URID key) |
| Return if an option is supported by LMMS. | |
| static void | supportOption (LV2_URID key) |
| Mark option as supported. | |
Private Member Functions | |
| void | initOption (LV2_URID key, uint32_t size, LV2_URID type, std::shared_ptr< void > value, LV2_Options_Context context=LV2_OPTIONS_INSTANCE, uint32_t subject=0) |
| Initialize an option internally. | |
Private Attributes | |
| std::map< LV2_URID, LV2_Options_Option > | m_optionByUrid |
| options + data, ordered by URID | |
| std::vector< LV2_Options_Option > | m_options |
| option storage | |
| std::map< LV2_URID, std::shared_ptr< void > > | m_optionValues |
| option value storage | |
Static Private Attributes | |
| static std::set< LV2_URID > | s_supportedOptions |
| options that are supported by every processor | |
Option container
References all available options for a plugin and maps them to their URIDs. This class is used per Lv2 processor (justification in Lv2Proc::initMOptions())
The public member functions should be called in descending order:
| void lmms::Lv2Options::clear | ( | ) |
| void lmms::Lv2Options::createOptionVectors | ( | ) |
Fill m_options and m_optionPointers with all options.
|
inline |
Return the feature.
|
private |
Initialize an option internally.
|
inline |
Initialize an option.
|
static |
Return if an option is supported by LMMS.
|
private |
options + data, ordered by URID
|
private |
option storage
option value storage
|
staticprivate |
options that are supported by every processor