MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrGuiObjectManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrGuiObjectManager_H_
10 #define lgrGuiObjectManager_H_
11 
12 #include <lgrGui/lgrGui.h>
13 
14 
15 #include <QMultiHash>
16 
17 namespace MAKLogger
18 {
19 
21  template <typename ObjectType>
23  {
24  public:
25 
27 
28  virtual ~DtLgrGuiObjectManager();
29 
34  virtual bool addObject(QString objectName,ObjectType*);
35  virtual bool removeObject(QString objectName);
36 
37  virtual ObjectType* findObject(QString objectName);
38  virtual ObjectType* releaseObject(QString objectName);
39 
41  virtual void clear();
42 
43  protected:
44  QMultiHash<QString, ObjectType> myObjectMap;
45 
46  };
47 }
48 
49 #define lgrGuiObjectManager_INC
50 #include "lgrGuiObjectManager.inl"
51 #undef lgrGuiObjectManager_INC
52 
53 #endif
54 
QMultiHash< QString, ObjectType > myObjectMap
Definition: lgrGuiObjectManager.h:44
virtual bool addObject(QString objectName, ObjectType *)
Adds an object, if an object of the same name exists the object will NOT be added and the function wi...
virtual ObjectType * findObject(QString objectName)
The logger gui object manager.
Definition: lgrGuiObjectManager.h:22
virtual void clear()
Clears all objects.
virtual ObjectType * releaseObject(QString objectName)
virtual bool removeObject(QString objectName)
Defines INPORT/EXPORT macros for lgrGui library.

Document ID: Generated on Mon Mar 22 15:30:17 EDT 2021 from SVN revision 226440
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)