The BLOCKS SDK
Block::ConfigMetaData Struct Reference

Description

Metadata for a given config item.

Public Member Functions

 ConfigMetaData (juce::uint32 itemIndex)
 
 ConfigMetaData (juce::uint32 itemIndex, juce::int32 itemValue, juce::Range< juce::int32 > rangeToUse, bool active, const char *itemName, ConfigType itemType, const char *options[ConfigMetaData::numOptionNames], const char *groupName)
 
 ConfigMetaData (const ConfigMetaData &other)
 
const ConfigMetaDataoperator= (const ConfigMetaData &other)
 
bool operator== (const ConfigMetaData &other) const
 
bool operator!= (const ConfigMetaData &other) const
 

Public Attributes

juce::uint32 item = 0
 
juce::int32 value = 0
 
juce::Range< juce::int32 > range
 
bool isActive = false
 
juce::String name
 
ConfigType type = ConfigType::integer
 
juce::String optionNames [numOptionNames] = {}
 
juce::String group
 

Static Public Attributes

static constexpr juce::int32 numOptionNames = 16
 

Public Types

enum class  ConfigType {
  integer , floating , boolean , colour ,
  options
}
 

Constructor & Destructor Documentation

◆ ConfigMetaData() [1/3]

Block::ConfigMetaData::ConfigMetaData ( juce::uint32  itemIndex)

◆ ConfigMetaData() [2/3]

Block::ConfigMetaData::ConfigMetaData ( juce::uint32  itemIndex,
juce::int32  itemValue,
juce::Range< juce::int32 >  rangeToUse,
bool  active,
const char *  itemName,
ConfigType  itemType,
const char *  options[ConfigMetaData::numOptionNames],
const char *  groupName 
)

References numOptionNames, and optionNames.

◆ ConfigMetaData() [3/3]

Block::ConfigMetaData::ConfigMetaData ( const ConfigMetaData other)

Member Function Documentation

◆ operator=()

const ConfigMetaData& Block::ConfigMetaData::operator= ( const ConfigMetaData other)

◆ operator==()

bool Block::ConfigMetaData::operator== ( const ConfigMetaData other) const

◆ operator!=()

bool Block::ConfigMetaData::operator!= ( const ConfigMetaData other) const

Member Enumeration Documentation

◆ ConfigType

Enumerator
integer 
floating 
boolean 
colour 
options 

Member Data Documentation

◆ numOptionNames

constexpr juce::int32 Block::ConfigMetaData::numOptionNames = 16
staticconstexpr

◆ item

juce::uint32 Block::ConfigMetaData::item = 0

Referenced by operator=(), and operator==().

◆ value

juce::int32 Block::ConfigMetaData::value = 0

Referenced by operator=(), and operator==().

◆ range

juce::Range<juce::int32> Block::ConfigMetaData::range

Referenced by operator=(), and operator==().

◆ isActive

bool Block::ConfigMetaData::isActive = false

Referenced by operator=(), and operator==().

◆ name

juce::String Block::ConfigMetaData::name

Referenced by operator=(), and operator==().

◆ type

ConfigType Block::ConfigMetaData::type = ConfigType::integer

Referenced by operator=().

◆ optionNames

juce::String Block::ConfigMetaData::optionNames[numOptionNames] = {}

◆ group

juce::String Block::ConfigMetaData::group

Referenced by operator=(), and operator==().


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