ResourceProvider::ResourceProvider() : _specificCoreContainer(nullptr), _parameterSet(std::shared_ptr<SPICE::BIG::DataSet>(new SPICE::BIG::DataSet())) { // --- Generate parameterSet --- // -> Generate parameters, with names and maybe limits std::shared_ptr<SPICE::BIG::DataEntryTypes::DataEntryBool> boolParameter(new SPICE::BIG::DataEntryTypes::DataEntryBool("BoolParameter")); std::shared_ptr<SPICE::BIG::DataEntryTypes::DataEntryInt> intParameter(new SPICE::BIG::DataEntryTypes::DataEntryInt("IntParameter", -100, 100)); std::shared_ptr<SPICE::BIG::DataEntryTypes::DataEntryUnsignedInt> unsignedIntParameter(new SPICE::BIG::DataEntryTypes::DataEntryUnsignedInt("UnsignedIntParameter", 0, 100)); // -> Add description, unit and default-value boolParameter->setAdditionalInformations("This parameter defines a bool value","","true"); intParameter->setAdditionalInformations("This parameter defines a int value like a speed.", "mm/s","3"); unsignedIntParameter->setAdditionalInformations("This parameter defines an uint value like a position","mm","0"); // -> define init-value (normaly the default-value) boolParameter->setValue(true); intParameter->setValue(3); unsignedIntParameter->setValue(0); // -> add parameters to the parameterSet _parameterSet->addDataEntry(boolParameter); _parameterSet->addDataEntry(intParameter); _parameterSet->addDataEntry(unsignedIntParameter); // --- Generate configurationSet --- // -> can be generated like the parameterSets. This examples shows, how to use parameterSet as configurationSet too _configSets[1] = _parameterSet; // -> Load configuration from an XML-File. _configSets[1]->loadParameterSetFromPath("configuration1.xml", getNewXMLParserInstance()); // -> to password protect the configuration //_configSets[1]->setPassword("examplePassword"); }
void OriginalRecording::setParameter(EngineParameter& parameter) { boolParameter(0, separateFiles); }