LRAUV  revA
LogReader.h
Go to the documentation of this file.
1 
10 #ifndef LOGREADER_H_
11 #define LOGREADER_H_
12 
13 #include "utils/FlexArray.h"
14 
15 class InStream;
16 
21 class LogReader
22 {
23 public:
24 
26  virtual ~LogReader();
27 
29  virtual void setInStream( InStream& inStream );
30 
32  virtual bool isValid();
33 
35  virtual unsigned int read() = 0;
36 
37 protected:
38 
40  LogReader();
41 
43  LogReader( InStream& inStream );
44 
47 
48 private:
49  // Note that the copy constructor below is private and not given a body.
50  // Any attempt to call it will return a compiler error.
51  LogReader( const LogReader& old ); // disallow copy constructor
52 
53 };
54 
55 #endif /*LOGREADER_H_*/
Base class for a generalized set of "log data destinations," including to files (text or binary)...
Definition: LogReader.h:21
virtual bool isValid()
Return true if logStream_ is available.
Definition: LogReader.cpp:29
This is a very abstract class that can be implemented by classes that want to receive stream input...
Definition: InStream.h:29
Contains the FlexArrayBase and FlexArray class declarations.
InStream * logStream_
Stores an InStream.
Definition: LogReader.h:46
LogReader()
Protected constructor for pure virtual class.
Definition: LogReader.cpp:15
virtual unsigned int read()=0
Read between the specified times.
virtual void setInStream(InStream &inStream)
Sets the InStream.
Definition: LogReader.cpp:35
virtual ~LogReader()
Destructor.
Definition: LogReader.cpp:25