PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
Class_Log.hpp
1 /*
2  * ClassLog.hpp
3  *
4  * Created on: 3 dec 2014
5  * Author: marco
6  */
7 
8 #ifndef INCLUDE_CLASS_LOG_HPP_
9 #define INCLUDE_CLASS_LOG_HPP_
10 
11 #if NOMPI==0
12 #include <mpi.h>
13 #endif
14 #include <vector>
15 #include <string>
16 #include <fstream>
17 #include <sstream>
18 using namespace std;
19 
20 class Class_Log {
21 
22  string filename;
23 #if NOMPI==0
24  MPI_Comm comm;
25 #endif
26 
27 public:
28 #if NOMPI==0
29  Class_Log(string filename_,MPI_Comm comm_ = MPI_COMM_WORLD);
30 #else
31  Class_Log(string filename_);
32 #endif
33  ~Class_Log();
34 
35  void writeLog(string msg);
36 
37 };
38 
39 #endif /* INCLUDE_CLASS_LOG_HPP_ */