MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrPacketPrinter.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 #ifndef lgrPacketPrinter_H_
9 #define lgrPacketPrinter_H_
10 
11 #include <lgrCore/lgrCore.h>
13 #include <lgrCore/messageOutput.h>
14 
15 class DtOutputStream;
16 
17 namespace MAKLogger
18 {
19  class DtPacket;
20  class DtMessageIOInfo;
21  class DtMessageInput;
22 
26  {
27  public:
28 
29  //Empty Constructor
31 
32  //Destructor.
33  virtual ~DtLgrPacketPrinter();
34 
36  virtual void beginPrinting(const DtMessageIOInfo* info,
37  const DtMessageInput* fileInput, const DtString& destination);
38 
40  virtual void printPacket( const DtPacket& packet ) = 0;
41 
43  virtual void endPrinting();
44 
45  private:
49  DtLgrPacketPrinter& operator=(const DtLgrPacketPrinter&);
50  };
51 
55  {
56  public:
62  const DtString& destination, const DtMessageIOInfo* info);
63 
65  virtual ~DtLgrPacketPrinterOutput();
66 
67  private:
72  public:
73 
76  virtual void setPrinter(DtLgrPacketPrinter* printer );
77 
80  virtual void setDestination(const DtString& destination);
81 
83  virtual const DtString& destination() const;
84 
86  virtual DtLgrPacketPrinter* currentPrinter();
87 
90  virtual void activate(const DtMessageInput* fileInput);
91 
93  virtual bool isActivated() const;
94 
96  virtual void deactivate();
97 
100  virtual bool outputPacket(const DtPacket& packet);
101 
103  virtual void filterMessage(DtPacket* packet);
104 
105  virtual const DtMessageIOInfo* info() const;
106 
108  virtual void flush();
109 
111  virtual void setOutputScaling(double scaling, bool enableStatic, bool isPaused=false);
112 
113  protected:
114 
118  DtString myDestination;
119 
120  };
121 }
122 
123 #endif

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)