MAK Data Logger API Documentation for HLA
lgrDataViewSet.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 lgrDataViewSet_H_
10 #define lgrDataViewSet_H_
11 
12 #include "lgrCore.h"
13 
14 #include <deque>
15 #include <virtualConstructor.h>
16 #include <vlutil/vlSmartPointers.h>
17 
18 namespace MAKLogger
19 {
20  class DtPacket;
21 
23  typedef DtBoost::shared_ptr<DtLgrDataViewSet> DtLgrDataViewSetSP;
24 
26  {
27  public:
28 
29  struct DataPoint
30  {
31  double time;
32  unsigned short size;
33  unsigned char type;
34  };
35 
36  typedef std::deque<DataPoint> DataPointSet;
37  typedef std::deque<DataPoint>::iterator iterator;
38  typedef std::deque<DataPoint>::const_iterator const_iterator;
39 
42 
43 
44  virtual ~DtLgrDataViewSet();
45 
48  virtual void addPacketData(const DtPacket& packet);
49 
51  virtual void append(const DtLgrDataViewSet& secondSet);
52 
55  virtual void clearAllBeforeTime(double time);
56 
58  virtual void clearSet();
59 
61  const_iterator begin() const;
62 
64  const_iterator end() const;
65 
67  size_t size() const;
68 
69  protected:
70 
71  DataPointSet myPoints;
72  };
73 }
74 
75 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)