VR-Exchange 2.1 API Documentation
pDataViewSet.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  ******************************************************************************/
5 
6 #ifndef pDataViewSet_H_
7 #define pDataViewSet_H_
8 
9 #include <deque>
10 #include <portal/pMessage.h>
11 #include <vlutil/vlPrint.h>
12 
13 #include <vlutil/vlSmartPointers.h>
14 
15 namespace MAKVrExchange {
16 
18 
19  typedef DtBoost::shared_ptr<DtPortalViewSet> DtPortalDataViewSetSP;
20 
23  {
24  public:
25 
26  struct DataPoint
27  {
28  DtTime time;
29  unsigned char type;
30 
31  // extra storage.
32  unsigned char unused1;
33  unsigned char unused2;
34  unsigned char unused3;
35  };
36 
37  typedef std::deque<DataPoint> DataPointSet;
38  typedef std::deque<DataPoint>::iterator iterator;
39  typedef std::deque<DataPoint>::const_iterator const_iterator;
40 
43 
45  virtual ~DtPortalViewSet();
46 
49  virtual void addMessageData(const DtPortalMessage& message, DtTime time = 0);
50 
52  virtual void append(const DtPortalViewSet& secondSet);
53 
56  virtual void clearAllBeforeTime(DtTime time);
57 
59  virtual void clearSet();
60 
62  const_iterator begin() const;
63 
65  const_iterator end() const;
66 
68  size_t size() const;
69 
70  protected:
71 
73  };
74 
75 }
76 
77 #endif

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)