MAK Data Logger API Documentation for DIS
messageInput.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 messageInput_H_
10 #define messageInput_H_
11 
12 #include "lgrCore.h"
13 #include "messageBuffer.h"
14 
15 namespace MAKLogger
16 {
17  class DtMessageIOInfo;
18 
23  {
24  protected:
26  private:
30  DtMessageInput& operator=(const DtMessageInput&);
31  public:
32 
33  virtual ~DtMessageInput();
34 
36  virtual void activate() = 0;
37 
39  virtual void deactivate() = 0;
40 
42  virtual void startReadMessages(DtAbsoluteTime timeToRead);
43 
45  virtual void stopReadMessages();
46 
48  virtual DtAbsoluteTime inputTime() const;
49 
55  virtual void setStopReadingTimeBoundary(bool inclusive);
56 
60  virtual bool stopReadingBoundary() const;
61 
63  virtual void getNextMessages(DtMessageBuffer&) = 0;
64 
66  virtual void dropNextMessages() = 0;
67 
69  virtual const DtMessageIOInfo* info() const = 0;
70 
72  virtual void tick();
73 
76  virtual void setTimeLimit(double limit);
77 
78  protected:
79 
82  double myTimeLimit;
83  // The time of the next packet waiting to be read if known; otherwise, -1.0.
85  };
86 
87 }
88 
89 #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)