MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
DtObjectInstanceListCtrl Class Reference

DtObjectInstanceListCtrl UI Controller type for object instances Populates a QListView with the object instances Catches selectionChanged events and forwards them as a signal Responds to object instance discovery and removal. More...

+ Inheritance diagram for DtObjectInstanceListCtrl:
+ Collaboration diagram for DtObjectInstanceListCtrl:

Public Member Functions

 DtObjectInstanceListCtrl (DtFomReflGenList &reflectedObjects, DtOMTTree &omtTree, DtDatatypeManager &datatypeManager, DtDisDictionary &entityTypeDictionary)
 Constructor.
virtual ~DtObjectInstanceListCtrl ()
 Destructor.
virtual void fillListView (QTreeWidget *listView)
virtual DtObjectClassFedNodefindCurrentObjFedNode (QTreeWidgetItem *currentLoc)
virtual void setCurrentTime (const MAKLogger::DtAbsoluteTime &newTime)
 Update current time.
virtual const
MAKLogger::DtAbsoluteTime
currentTime () const
 Get current time.
virtual DtReflectedGenericObject * reflectedObject (const DtString &objectName)
 Get the reflected object with the given name.
virtual void discoverObject (DtReflectedGenericObject *obj)
 Process a discovered object.
virtual void removeObject (DtReflectedGenericObject *obj)
 Remove the specified object.

Protected Member Functions

virtual void updateEntityType (DtReflectedGenericObject *obj)
 Process an object update to capture a missing entity type.
virtual void updateObjectTime (const DtStateMsg &msg, DtHlaObject *obj)
 Process an object update to update time.
virtual bool getEntityType (DtReflectedGenericObject *obj, bool addCallback, QString &entityTypeString)
 Display the object's entity type when it becomes available.
 DtObjectInstanceListCtrl (const DtObjectInstanceListCtrl &)
DtObjectInstanceListCtrloperator= (const DtObjectInstanceListCtrl &)

Static Protected Member Functions

static void updateEntityTypeCb (DtReflectedGenericObject *obj, void *userData)
 Callback for object updates to process entity type.
static void updateObjectTimeCb (const DtStateMsg &msg, DtHlaObject *obj, void *usr)
 Callback for object updates to process time.

Protected Attributes

QTreeWidgetmyListView
DtFomReflGenListmyReflectedObjects
DtOMTTreemyOmtTree
DtDatatypeManagermyDatatypeManager
DtEntityTypeDatatypeRep myEntityTypeDatatypeRep
MAKLogger::DtAbsoluteTime myCurrentTime

Detailed Description

DtObjectInstanceListCtrl UI Controller type for object instances Populates a QListView with the object instances Catches selectionChanged events and forwards them as a signal Responds to object instance discovery and removal.

Constructor & Destructor Documentation

DtObjectInstanceListCtrl::DtObjectInstanceListCtrl ( DtFomReflGenList reflectedObjects,
DtOMTTree omtTree,
DtDatatypeManager datatypeManager,
DtDisDictionary entityTypeDictionary 
)

Constructor.

virtual DtObjectInstanceListCtrl::~DtObjectInstanceListCtrl ( )
virtual

Destructor.

DtObjectInstanceListCtrl::DtObjectInstanceListCtrl ( const DtObjectInstanceListCtrl )
protected

Member Function Documentation

virtual const MAKLogger::DtAbsoluteTime& DtObjectInstanceListCtrl::currentTime ( ) const
virtual

Get current time.

virtual void DtObjectInstanceListCtrl::discoverObject ( DtReflectedGenericObject *  obj)
virtual

Process a discovered object.

virtual void DtObjectInstanceListCtrl::fillListView ( QTreeWidget listView)
virtual
virtual DtObjectClassFedNode* DtObjectInstanceListCtrl::findCurrentObjFedNode ( QTreeWidgetItem currentLoc)
virtual
virtual bool DtObjectInstanceListCtrl::getEntityType ( DtReflectedGenericObject *  obj,
bool  addCallback,
QString &  entityTypeString 
)
protectedvirtual

Display the object's entity type when it becomes available.

Initially, callback should be added. Subsequent calls should remove callback should be removed when entity type is updated.

DtObjectInstanceListCtrl& DtObjectInstanceListCtrl::operator= ( const DtObjectInstanceListCtrl )
protected
virtual DtReflectedGenericObject* DtObjectInstanceListCtrl::reflectedObject ( const DtString &  objectName)
virtual

Get the reflected object with the given name.

virtual void DtObjectInstanceListCtrl::removeObject ( DtReflectedGenericObject *  obj)
virtual

Remove the specified object.

virtual void DtObjectInstanceListCtrl::setCurrentTime ( const MAKLogger::DtAbsoluteTime newTime)
virtual

Update current time.

virtual void DtObjectInstanceListCtrl::updateEntityType ( DtReflectedGenericObject *  obj)
protectedvirtual

Process an object update to capture a missing entity type.

static void DtObjectInstanceListCtrl::updateEntityTypeCb ( DtReflectedGenericObject *  obj,
void *  userData 
)
staticprotected

Callback for object updates to process entity type.

virtual void DtObjectInstanceListCtrl::updateObjectTime ( const DtStateMsg &  msg,
DtHlaObject *  obj 
)
protectedvirtual

Process an object update to update time.

static void DtObjectInstanceListCtrl::updateObjectTimeCb ( const DtStateMsg &  msg,
DtHlaObject *  obj,
void *  usr 
)
staticprotected

Callback for object updates to process time.

Member Data Documentation

MAKLogger::DtAbsoluteTime DtObjectInstanceListCtrl::myCurrentTime
protected
DtDatatypeManager& DtObjectInstanceListCtrl::myDatatypeManager
protected
DtEntityTypeDatatypeRep DtObjectInstanceListCtrl::myEntityTypeDatatypeRep
protected
QTreeWidget* DtObjectInstanceListCtrl::myListView
protected
DtOMTTree& DtObjectInstanceListCtrl::myOmtTree
protected
DtFomReflGenList& DtObjectInstanceListCtrl::myReflectedObjects
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)