20 namespace makVrfVrlinkExtToolkit
22 class DtReflectedExtendedAttributesObjectList;
23 class DtReflectedExtendedAttributesObject;
27 #include <vl/globalObjectDesignator.h>
30 #include <vlutil/vlPrint.h>
31 #include <vlutil/vlPrintUtil.h>
55 template<
class ReflectedObjType,
class StateRepType>
58 template<
class ReflectedObjType,
class StateRepType>
64 template<
class ReflectedObjType,
class StateRepType>
67 template<
class ReflectedObjType,
class StateRepType>
73 template<
class ReflectedObjType,
class StateRepType>
76 template<
class ReflectedObjType,
class StateRepType>
96 template<
class StateRepType>
99 DtPrintAttribute(DtInfo,
"EntityId", stateRep->entityId().string());
100 DtPrintAttribute(DtInfo,
"EntityType", stateRep->entityType().string());
106 DtPrintAttribute(DtInfo,
"EnvironmentProcessId", stateRep->environmentalProcessID().string());
107 DtPrintAttribute(DtInfo,
"EnvironmentType", stateRep->environmentType().string());
111 template<
class ReflectedObjType,
class StateRepType>
115 processObjectAdded<ReflectedObjType, StateRepType>(
object);
118 template<
class ReflectedObjType,
class StateRepType>
123 object->addPostUpdateCallback(objectUpdatedCallback<ReflectedObjType, StateRepType>,
this);
125 processObjectUpdated<ReflectedObjType, StateRepType>(object);
129 template<
class ReflectedObjType,
class StateRepType>
133 processObjectUpdated<ReflectedObjType, StateRepType>(
object);
136 template<
class ReflectedObjType,
class StateRepType>
141 bool headerPrinted =
false;
145 StateRepType* sr =
dynamic_cast<StateRepType*
>(
object->stateRep());
150 std::vector<DtReaderWriterRegistryData *>::const_iterator propIter =
151 sr->stateProperties().registry().registryData().begin();
152 std::vector<DtReaderWriterRegistryData *>::const_iterator propEnd =
153 sr->stateProperties().registry().registryData().end();
154 for (; propIter != propEnd; ++propIter)
165 DtInfo <<
"****************************************" << std::endl;
166 DtInfo <<
"****** Updated State Properties *******" << std::endl;
167 DtInfo <<
"****************************************" << std::endl;
168 printStateRepBasicInfo<StateRepType>(sr);
170 headerPrinted =
true;
173 DtInfo << prop->
stringRep() << std::endl;
183 template<
class ReflectedObjType,
class StateRepType>
187 processObjectRemoved<ReflectedObjType, StateRepType>(
object);
190 template<
class ReflectedObjType,
class StateRepType>
195 object->removePostUpdateCallback(objectUpdatedCallback<ReflectedObjType, StateRepType>,
this);
DtVrfStatePropertyPrinter & operator=(const DtVrfStatePropertyPrinter &orig)
virtual DtString stringRep(const DtString &root="") const =0
DtNetworkEventManager * myEventManager
Definition: vrfStatePropertyPrinter.h:82
DtReflectedVrfControlObjectList * myReflectedControlObjectList
Definition: vrfStatePropertyPrinter.h:85
DtReflectedVrfExtEntityList * myReflectedEntityList
Definition: vrfStatePropertyPrinter.h:83
virtual bool wasUpdatedSince(DtTime t) const
Can be implemented in subclasses to return true if an update occurred after the specified time...
DtVrfStatePropertyPrinter()
Not implemented.
makVrfVrlinkExtToolkit::DtReflectedExtendedAttributesObjectList * myReflectedExtendedAttributesList
Definition: vrfStatePropertyPrinter.h:87
void processObjectRemoved(ReflectedObjType *object)
Definition: vrfStatePropertyPrinter.h:191
Definition: reflectedVrfExtEntityList.h:23
Definition: readerWriter.h:85
void printStateRepBasicInfo(StateRepType *stateRep)
Prints some basic identifying information about the state rep.
Definition: vrfStatePropertyPrinter.h:97
void printStateRepBasicInfo< DtControlObjectRepository >(DtControlObjectRepository *stateRep)
Definition: vrfStatePropertyPrinter.h:104
Interface class used to define minimal interface for a property.
Definition: propertyInterface.h:48
Contains the DtExtEntityStateRepository class.
Registers for all state property updates and prints the current state.
Definition: vrfStatePropertyPrinter.h:34
DtControlObjectRepository class extends the DtControlObjectBaseRepository to be able to handle extend...
Definition: controlObjectRepository.h:27
virtual bool init(DtSmsLoader *smsLoader)
Definition: networkEventManager.h:40
DtClock myClock
Definition: vrfStatePropertyPrinter.h:90
void processObjectUpdated(ReflectedObjType *object)
Definition: vrfStatePropertyPrinter.h:137
void processObjectAdded(ReflectedObjType *object)
Definition: vrfStatePropertyPrinter.h:119
virtual DtPropertyInterface * property()
Definition: smsLoader.h:19
Definition: reflectedVrfExtControlObjectList.h:23
DtReflectedVrfExtAggregateList * myReflectedAggregateList
Definition: vrfStatePropertyPrinter.h:84
static void objectUpdatedCallback(ReflectedObjType *object, void *usr)
Callback for the update of objects.
Definition: vrfStatePropertyPrinter.h:130
virtual ~DtVrfStatePropertyPrinter()
static void objectAddedCallback(ReflectedObjType *object, void *usr)
Callback for the addition of new objects.
Definition: vrfStatePropertyPrinter.h:112
static void objectRemovedCallback(ReflectedObjType *object, void *usr)
Callback for the removal of objects.
Definition: vrfStatePropertyPrinter.h:184
std::map< DtGlobalObjectDesignator, DtTime > myLastUpdateTimes
Definition: vrfStatePropertyPrinter.h:91
Definition: reflectedVrfExtAggregateList.h:23