1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: Config_Prop.cpp
4 // Created: 18 Sep 2014
5 // Author: Mikhail PONIKAROV
8 #include "Config_Prop.h"
9 #include "Events_Loop.h"
10 #include "Events_Message.h"
12 void Config_Prop::setValue(const std::string& theValue)
14 if (theValue != myValue) {
16 static const Events_ID aChangedEvent = Events_Loop::loop()->eventByName("PreferenceChanged");
17 Events_Loop::loop()->send(std::shared_ptr<Events_Message>(
18 new Events_Message(aChangedEvent, this)));
22 void Config_Prop::setDefaultValue(const std::string& theValue)
24 if (theValue != myDefaultValue) {
25 myDefaultValue = theValue;