NAMD
InfoStream.h
Go to the documentation of this file.
1 
7 /*
8  Defines a new stream: iout, for "i"nforming consoles.
9 */
10 
11 #ifndef INFOSTREAM_H
12 #define INFOSTREAM_H
13 
14 #include <iostream>
15 #include <sstream>
16 class Vector;
17 class Tensor;
18 
19 class infostream : public std::ostream
20 {
21  public:
22  static std::ostream& access_iout_obj();
23 
24  infostream();
25  ~infostream();
26 };
27 
28 std::ostream& operator<<(std::ostream& strm, const Vector &v1);
29 
30 std::ostream& operator<<(std::ostream& strm, const Tensor &t1);
31 
33 std::ostream& endi(std::ostream& s);
34 
39 std::ostream& iINFO (std::ostream& s);
40 std::ostream& iWARN (std::ostream& s);
41 std::ostream& iERROR(std::ostream& s);
42 std::ostream& iDEBUG(std::ostream& s);
43 std::ostream& iPE(std::ostream& s); // outlined because of CkMyPe()
44 
45 #define iFILE __FILE__<<'('<<__LINE__<<"): "
46 #define iINFOF iINFO << iFILE
47 #define iWARNF iWARN << iFILE
48 #define iERRORF iERROR << iFILE
49 #define iDEBUGF iDEBUG << iFILE
50 
51 #define iout infostream::access_iout_obj()
52 
53 #endif /* INFOSTREAM_H */
54 
std::ostream & iINFO(std::ostream &s)
Definition: InfoStream.C:81
static std::ostream & access_iout_obj()
Definition: InfoStream.C:19
Definition: Vector.h:64
std::ostream & iPE(std::ostream &s)
Definition: InfoStream.C:61
std::ostream & endi(std::ostream &s)
Definition: InfoStream.C:54
std::ostream & iWARN(std::ostream &s)
Definition: InfoStream.C:82
datastream & operator<<(datastream &strm, const Vector &v1)
Definition: DataStream.C:25
std::ostream & iDEBUG(std::ostream &s)
Definition: InfoStream.C:84
Definition: Tensor.h:15
std::ostream & iERROR(std::ostream &s)
Definition: InfoStream.C:83