DGtal  1.5.beta
TraceWriterFile.h
1 
17 #pragma once
30 #if defined(TraceWriterFile_RECURSES)
31 #error Recursive header files inclusion detected in TraceWriterFile.h
32 #else // defined(TraceWriterFile_RECURSES)
34 #define TraceWriterFile_RECURSES
35 
36 #if !defined TraceWriterFile_h
38 #define TraceWriterFile_h
39 
41 // Inclusions
42 #include <iostream>
43 #include <string>
44 #include "DGtal/base/TraceWriter.h"
46 
47 namespace DGtal
48 {
49 
51  // class TraceWriterFile
57  {
58  // ----------------------- Standard services ------------------------------
59  public:
60 
61 
67  TraceWriterFile(std::ostream &aoutputStream) : TraceWriter(aoutputStream) {};
68 
69 
70 
71 
76 
77  // ----------------------- Interface --------------------------------------
78  public:
79 
84  void selfDisplay( std::ostream & out ) const;
85 
90  bool isValid() const;
91 
92 
97  std::string prefixWarning() {return "[WRG]";}
98 
103  std::string prefixInfo() {return "";}
104 
109  std::string prefixError() {return "[ERR]";}
110 
115  std::string prefixEmphase() {return "";}
116 
121  std::string postfixReset() {return "";}
122 
123 
124  private:
125 
132 
140 
141  }; // end of class TraceWriterFile
142 
143 
150  std::ostream&
151  operator<<( std::ostream & out, const TraceWriterFile & object );
152 
153 
154 } // namespace DGtal
155 
156 
157 
158 // //
160 
161 #endif // !defined TraceWriterFile_h
162 
163 #undef TraceWriterFile_RECURSES
164 #endif // else defined(TraceWriterFile_RECURSES)
std::string postfixReset()
TraceWriterFile(const TraceWriterFile &other)
TraceWriterFile(std::ostream &aoutputStream)
std::string prefixEmphase()
void selfDisplay(std::ostream &out) const
TraceWriterFile & operator=(const TraceWriterFile &other)
std::string prefixWarning()
Virtual Class to implement trace writers.
Definition: TraceWriter.h:58
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)