MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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/lgrCore.h>
13 #include <lgrCore/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 
79  virtual void insertPacket(DtPacket* packet);
80 
81  protected:
82 
85  double myTimeLimit;
86  // The time of the next packet waiting to be read if known; otherwise, -1.0.
88 
90  };
91 
92 }
93 
94 #endif
double myNextPacketTime
Definition: messageInput.h:87
The message input is the interface for objects that provide messages into the pipeline.
Definition: messageInput.h:22
Message buffer class responsible for storing a list of messages and iterating through that list...
Definition: messageBuffer.h:23
double myTimeLimit
Definition: messageInput.h:85
bool myStopReadingBoundary
Definition: messageInput.h:84
Contains MAKLogger::DtMessageBuffer class.
A message IO info object stores information about a specific message input or output stage...
Definition: messageIoInfo.h:21
DtMessageBuffer myInsertBuffer
Definition: messageInput.h:89
A generic packed of typed binary data.
Definition: packet.h:41
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
DtAbsoluteTime myCurrentTime
Definition: messageInput.h:83
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82
Contains lgrCore library definitions.

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)