MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetVal

Method GetVal

Source/ModuleSaveData.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44ModuleSaveData::SaveVal* ModuleSaveData::GetVal(std::string prop)
45{
46 for (auto iter = mValues.begin(); iter != mValues.end(); ++iter)
47 {
48 if ((*iter)->mProperty == prop)
49 return *iter;
50 }
51
52 //didn't find it, add
53 ModuleSaveData::SaveVal* newVal = new ModuleSaveData::SaveVal(prop);
54 mValues.push_back(newVal);
55 return newVal;
56}
57
58void ModuleSaveData::Save(ofxJSONElement& moduleInfo)
59{

Callers 15

OnTimeEventMethod · 0.80
UpdateNumMeasuresMethod · 0.80
GetMethod · 0.80
UpdateLightsMethod · 0.80
GetGridColorMethod · 0.80
UpdateVelocityLightsMethod · 0.80
OnGridButtonMethod · 0.80
GetStepMethod · 0.80
IntSliderUpdatedMethod · 0.80
ButtonClickedMethod · 0.80
DropdownUpdatedMethod · 0.80
KeyPressedMethod · 0.80

Calls

no outgoing calls

Tested by 2

GridUpdatedMethod · 0.64
KeyPressedMethod · 0.64