LRAUV  revA
MtxOutStream.h
Go to the documentation of this file.
1 /*
2  * MtxOutStream.h
3  *
4  * reads in 2D matrix "mtx" file where first two int32 are the
5  * dimensions, and the rest is a column major matrix of
6  * single precision.
7  *
8  * Created on: Feb 15, 2012
9  * Author: godin
10  */
11 
12 #ifndef MTXOUTSTREAM_H_
13 #define MTXOUTSTREAM_H_
14 
15 #include "FileOutStream.h"
16 #include "data/Mtx.h"
17 #include "logger/Logger.h"
18 #include "logger/Syslog.h"
19 
21 {
22 public:
23  MtxOutStream( const char* filename );
24  virtual ~MtxOutStream();
25 
28  bool write( const Mtx& mtx, Logger& logger,
29  int minM = 0, int maxM = -1, int minN = 0, int maxN = -1,
30  Syslog::Severity severity = Syslog::FAULT );
31 
32 };
33 
34 #endif /* MTXOUTSTREAM_H_ */
Client-side interface for injecting log data into the log queue.
Definition: Logger.h:30
virtual ~MtxOutStream()
Definition: MtxOutStream.cpp:14
MtxOutStream(const char *filename)
Definition: MtxOutStream.cpp:10
Wraps a c FILE* handle with an OutStream class.
Definition: FileOutStream.h:26
Definition: Mtx.h:24
Contains the Syslog class definition.
Contains the Logger class definition.
bool write(const Mtx &mtx, Logger &logger, int minM=0, int maxM=-1, int minN=0, int maxN=-1, Syslog::Severity severity=Syslog::FAULT)
Reads matrix in case of failure, returns invalid Matrix.
Definition: MtxOutStream.cpp:16
Definition: MtxOutStream.h:20
Severity
An attempt to define different levels of syslog severity.
Definition: Syslog.h:28
Definition: Syslog.h:34
Contains the FileOutStream class declaration.