go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkOpenCLLogger.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef __itkOpenCLLogger_h
19#define __itkOpenCLLogger_h
20
21#include "itkLoggerBase.h"
22#include "itkStdStreamLogOutput.h"
23
24namespace itk
25{
37{
38public:
39
43 typedef SmartPointer< const Self > ConstPointer;
44
46 itkTypeMacro( OpenCLLogger, Object );
47
53 static Pointer New();
54
57
59 void SetLogFileNamePrefix( const std::string & prefix );
60
62 std::string GetLogFileName() const { return this->m_FileName; }
63
65 itkSetStringMacro( OutputDirectory );
66
69 bool IsCreated() const;
70
72 void Write( PriorityLevelEnum level, std::string const & content ) override;
73
74protected:
75
78
80 ~OpenCLLogger() override;
81
83 void Initialize();
84
85private:
86
88
89 OpenCLLogger( const Self & ); //purposely not implemented
90 void operator=( const Self & ); //purposely not implemented
91
92 std::string m_FileName;
93 std::string m_OutputDirectory;
94
95 itk::StdStreamLogOutput::Pointer m_Stream;
96 std::ostream * m_FileStream;
98};
99
100} // end namespace itk
101
102#endif // end #ifndef __itkOpenCLLogger_h
Used for logging OpenCL compiler errors during a run.
static Pointer New()
static Pointer m_Instance
std::string m_FileName
static Pointer GetInstance()
SmartPointer< Self > Pointer
std::string m_OutputDirectory
itk::StdStreamLogOutput::Pointer m_Stream
void SetLogFileNamePrefix(const std::string &prefix)
OpenCLLogger Self
void Write(PriorityLevelEnum level, std::string const &content) override
OpenCLLogger(const Self &)
void operator=(const Self &)
LoggerBase Superclass
~OpenCLLogger() override
SmartPointer< const Self > ConstPointer
std::string GetLogFileName() const
std::ostream * m_FileStream
bool IsCreated() const


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo