void GpiOutputCommand::readProperties(boost::property_tree::wptree& pt) { AbstractCommand::readProperties(pt); setGpoPort(pt.get(L"gpoport", GpiOutput::DEFAULT_PORT)); setTriggerOnNext(pt.get(L"triggeronnext", GpiOutput::DEFAULT_TRIGGER_ON_NEXT)); }
void MacroCommand::readProperties(boost::property_tree::wptree& pt) { AbstractCommand::readProperties(pt); setMacro(QString::fromStdWString(pt.get(L"macro", TriCaster::DEFAULT_MACRO.toStdWString()))); setTriggerOnNext(pt.get(L"triggeronnext", TriCaster::DEFAULT_TRIGGER_ON_NEXT)); }
void AtemAudioGainCommand::readProperties(boost::property_tree::wptree& pt) { AbstractCommand::readProperties(pt); setInput(QString::fromStdWString(pt.get(L"audiogaininput", Atem::DEFAULT_AUDIO_INPUT.toStdWString()))); setGain(pt.get(L"gain", Atem::DEFAULT_AUDIO_GAIN)); setTriggerOnNext(pt.get(L"triggeronnext", Atem::DEFAULT_TRIGGER_ON_NEXT)); }
void AtemAudioInputStateCommand::readProperties(boost::property_tree::wptree& pt) { AbstractCommand::readProperties(pt); setInput(QString::fromStdWString(pt.get(L"audioinput", Atem::DEFAULT_AUDIO_INPUT.toStdWString()))); setState(QString::fromStdWString(pt.get(L"state", Atem::DEFAULT_AUDIO_INPUT_STATE.toStdWString()))); setTriggerOnNext(pt.get(L"triggeronnext", Atem::DEFAULT_TRIGGER_ON_NEXT)); }
void ImageCommand::readProperties(boost::property_tree::wptree& pt) { AbstractCommand::readProperties(pt); setTransition(QString::fromStdWString(pt.get(L"transition", Mixer::DEFAULT_TRANSITION.toStdWString()))); setTransitionDuration(pt.get(L"transitionDuration", Mixer::DEFAULT_DURATION)); setTween(QString::fromStdWString(pt.get(L"tween", Mixer::DEFAULT_TWEEN.toStdWString()))); setDirection(QString::fromStdWString(pt.get(L"direction", Mixer::DEFAULT_DIRECTION.toStdWString()))); setUseAuto(pt.get(L"useauto", Image::DEFAULT_USE_AUTO)); setTriggerOnNext(pt.get(L"triggeronnext", Image::DEFAULT_TRIGGER_ON_NEXT)); }
void HttpPostCommand::readProperties(boost::property_tree::wptree& pt) { AbstractCommand::readProperties(pt); setUrl(QString::fromStdWString(pt.get(L"url", Http::DEFAULT_URL.toStdWString()))); setTriggerOnNext(pt.get(L"triggeronnext", Http::DEFAULT_TRIGGER_ON_NEXT)); if (pt.count(L"httpdata") > 0) { BOOST_FOREACH(const boost::property_tree::wptree::value_type& value, pt.get_child(L"httpdata")) { this->models.push_back(KeyValueModel(QString::fromStdWString(value.second.get<std::wstring>(L"key")), QString::fromStdWString(value.second.get<std::wstring>(L"value")))); } }