本文整理汇总了C++中var::getProperty方法的典型用法代码示例。如果您正苦于以下问题:C++ var::getProperty方法的具体用法?C++ var::getProperty怎么用?C++ var::getProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类var
的用法示例。
在下文中一共展示了var::getProperty方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: loadJSONDataInternal
void ModuleRouter::loadJSONDataInternal(var data)
{
BaseItem::loadJSONDataInternal(data);
setSourceModule(ModuleManager::getInstance()->getItemWithName(data.getProperty("sourceModule", "")));
setDestModule(ModuleManager::getInstance()->getItemWithName(data.getProperty("destModule", "")));
if (data.getDynamicObject()->hasProperty("sourceValues")) sourceValues.loadItemsData(data.getProperty("sourceValues", var()));
}
示例2: loadJSONDataInternal
void Mapping::loadJSONDataInternal(var data)
{
BaseItem::loadJSONDataInternal(data);
input.loadJSONData(data.getProperty("input", var()));
cdm.loadJSONData(data.getProperty("conditions", var()));
fm.loadJSONData(data.getProperty("filters", var()));
om.loadJSONData(data.getProperty("outputs", var()));
fm.setupSource(input.inputReference);
}
示例3: loadJSONDataInternal
void Parameter::loadJSONDataInternal(var data)
{
Controllable::loadJSONDataInternal(data);
if (!saveValueOnly) setRange(data.getProperty("minValue", minimumValue), data.getProperty("maxValue", maximumValue));
if (data.getDynamicObject()->hasProperty("value")) setValue(data.getProperty("value", 0));
if (data.getDynamicObject()->hasProperty("controlMode")) setControlMode((ControlMode)(int)data.getProperty("controlMode", MANUAL));
if (data.getDynamicObject()->hasProperty("expression")) setControlExpression(data.getProperty("expression", ""));
if (data.getDynamicObject()->hasProperty("editable")) isEditable = data.getProperty("editable", true);
}
示例4: loadJSONDataInternal
void MIDIDeviceParameter::loadJSONDataInternal(var data)
{
Parameter::loadJSONDataInternal(data);
setInputDevice(MIDIManager::getInstance()->getInputDeviceWithName(value[0]));
if (inputDevice == nullptr) ghostDeviceIn = data.getProperty("value", var())[0];
setOutputDevice(MIDIManager::getInstance()->getOutputDeviceWithName(value[1]));
if (outputDevice == nullptr) ghostDeviceOut = data.getProperty("value", var())[1];
}
示例5: addItemFromData
void ConditionManager::addItemFromData(var data, bool fromUndoableAction)
{
String conditionType = data.getProperty("type", "none");
if (conditionType.isEmpty()) return;
Condition * i = ConditionFactory::getInstance()->createModule(conditionType);
if (i != nullptr) addItem(i, data, fromUndoableAction);
}
示例6: loadJSONDataInternal
void AudioModule::loadJSONDataInternal(var data)
{
Module::loadJSONDataInternal(data);
if (data.getDynamicObject()->hasProperty("audioSettings"))
{
ScopedPointer<XmlElement> elem = XmlDocument::parse(data.getProperty("audioSettings", ""));
am.initialise(2, 2, elem, true);
}
}
示例7: setState
void BitcrushAudioProcessor::setState(const var & state)
{
bitcrush->setValue(state.getProperty("bitcrush", bitcrush->getDefaultValue()));
downsample->setValue(state.getProperty("downsample", downsample->getDefaultValue()));
wet->setValue(state.getProperty("wet", wet->getDefaultValue()));
}
示例8: setState
void VolumeAudioProcessor::setState(const var & state)
{
volumeL->setValue(state.getProperty("volumeL", volumeL->getDefaultValue()));
volumeR->setValue(state.getProperty("volumeR", volumeR->getDefaultValue()));
stereoCoupling->setBoolValue(state.getProperty("stereoCoupling", stereoCoupling->getDefaultValue()));
}
示例9: setState
void PanAudioProcessor::setState(const var & state)
{
panning->setValue(state.getProperty("panning", panning->getDefaultValue()));
}
示例10: setState
void FilterAudioProcessor::setState(const var & state)
{
frequency->setValue(state.getProperty("frequency", frequency->getDefaultValue()));
resonance->setValue(state.getProperty("resonance", resonance->getDefaultValue()));
setFilterType(state.getProperty("filterType", 0));
}