DGtal  0.9.2
TraceWriterFile.h
1 
17 #pragma once
18 
30 #if defined(TraceWriterFile_RECURSES)
31 #error Recursive header files inclusion detected in TraceWriterFile.h
32 #else // defined(TraceWriterFile_RECURSES)
33 
34 #define TraceWriterFile_RECURSES
35 
36 #if !defined TraceWriterFile_h
37 
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 
131  TraceWriterFile( const TraceWriterFile & other );
132 
139  TraceWriterFile & operator=( const TraceWriterFile & other );
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)
Virtual Class to implement trace writers.
Definition: TraceWriter.h:57
bool isValid() const
TraceWriterFile & operator=(const TraceWriterFile &other)
void selfDisplay(std::ostream &out) const
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
std::string postfixReset()
TraceWriterFile(std::ostream &aoutputStream)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::string prefixWarning()
std::string prefixEmphase()