MAK Data Logger API Documentation for HLA
baseHlaClass.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #if DtHLA
11 #ifndef baseHlaClass_H_
12 #define baseHlaClass_H_
13 
14 #include "baseHlaValue.h"
15 #include <vector>
16 
17 namespace MAKLogger
18 {
19 
22  template <typename ValueType>
23  class DtBaseHlaClass : virtual public DtBaseHlaValue
24  {
25  public:
26  typedef std::vector<ValueType> ValueVector;
27  typedef typename ValueVector::iterator iterator;
28  typedef typename ValueVector::const_iterator const_iterator;
29 
30  public:
31 
35 
37  DtBaseHlaClass(const DtString& name,const DtString& baseClassName,
39 
44 
49 
51  virtual ~DtBaseHlaClass();
52 
54  inline const DtString& baseName() const;
55 
57  DtString simpleName() const;
58 
60  inline const char* baseName2print() const;
61 
65  void setBaseNameOnly(const DtString& name0);
66 
68 
69 
71  const DtBaseHlaClass<ValueType>* baseClass() const;
73 
78 
81  bool isOfClass( DtLgrHlaHandle handle ) const;
82 
85  bool isOfClass( const DtString& name ) const;
86 
88  bool isOfClass( const DtBaseHlaClass& baseClass) const;
89 
92  void addValue(const ValueType& value);
93 
95  void clearValues();
96 
100  int valueCount(bool thisClassOnly) const;
101 
106  int minHandle(bool thisClassOnly) const;
107 
112  int maxHandle(bool thisClassOnly) const;
113 
114 
116 
117  iterator begin();
118  const_iterator begin() const;
120 
122 
123  iterator end();
124  const_iterator end() const;
126 
127 
129 
130 
131 
132 
133  ValueType* findValueByName(const DtString& name,bool thisClassOnly);
134  const ValueType* findValueByName(const DtString& name,bool thisClassOnly) const;
136 
138 
139 
140 
141 
142  ValueType* findValueByHandle(DtLgrHlaHandle handle,bool thisClassOnly);
143  const ValueType* findValueByHandle(DtLgrHlaHandle handle,bool thisClassOnly) const;
145 
146  private:
150  };
151 
152 }
153 
154 #define baseHlaClass_INC_
155 #include "baseHlaClass.inl"
156 #undef baseHlaClass_INC_
157 
158 #endif
159 #endif

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)