7 namespace InstrumentCatalogInterface {
18 template <
class DataType>
30 std::map<tpObserverNotifier, tpObserver> m_Subscribers;
42 : m_Value(InitialValue)
51 void rWrite(
const DataType & rNewValue)
58 void Write(
const DataType NewValue)
62 void rRead(DataType & rReturnedValue)
65 rReturnedValue = m_Value;
81 m_Subscribers.insert(std::pair<tpObserverNotifier, tpObserver>(&rNotifier, &rObs));
87 m_Subscribers.erase(&rNotifier);
91 void l_NotifyChange(
void)
95 for (
auto l_it = m_Subscribers.begin();
96 l_it != m_Subscribers.end();
100 (l_it->first)->NotifyVarUpdate(*(l_it->second));