Loading...
Searching...
No Matches
itkOpenCLLogger.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkOpenCLLogger_h
#define itkOpenCLLogger_h
#include "itkLoggerBase.h"
#include "itkStdStreamLogOutput.h"
namespace itk
{
class OpenCLLogger : public LoggerBase
{
public:
ITK_DISALLOW_COPY_AND_MOVE(OpenCLLogger);
using Self = OpenCLLogger;
using Superclass = LoggerBase;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkTypeMacro(OpenCLLogger, Object);
static Pointer
New();
static Pointer
GetInstance();
void
SetLogFileNamePrefix(const std::string & prefix);
std::string
GetLogFileName() const
{
return this->m_FileName;
}
itkSetStringMacro(OutputDirectory);
bool
IsCreated() const;
void
Write(PriorityLevelEnum level, std::string const & content) override;
protected:
OpenCLLogger();
~OpenCLLogger() override;
void
Initialize();
private:
static Pointer m_Instance;
std::string m_FileName{};
std::string m_OutputDirectory{};
itk::StdStreamLogOutput::Pointer m_Stream{};
std::ostream * m_FileStream{};
bool m_Created{};
};
} // end namespace itk
#endif // end #ifndef itkOpenCLLogger_h
LoggerBase
itk::OpenCLLogger::New
static Pointer New()
itk::OpenCLLogger::OpenCLLogger
OpenCLLogger()
itk::OpenCLLogger::m_Instance
static Pointer m_Instance
Definition itkOpenCLLogger.h:96
itk::OpenCLLogger::m_FileName
std::string m_FileName
Definition itkOpenCLLogger.h:98
itk::OpenCLLogger::GetInstance
static Pointer GetInstance()
itk::OpenCLLogger::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(OpenCLLogger)
itk::OpenCLLogger::m_OutputDirectory
std::string m_OutputDirectory
Definition itkOpenCLLogger.h:99
itk::OpenCLLogger::Initialize
void Initialize()
itk::OpenCLLogger::m_Stream
itk::StdStreamLogOutput::Pointer m_Stream
Definition itkOpenCLLogger.h:101
itk::OpenCLLogger::SetLogFileNamePrefix
void SetLogFileNamePrefix(const std::string &prefix)
itk::OpenCLLogger::Pointer
SmartPointer< Self > Pointer
Definition itkOpenCLLogger.h:43
itk::OpenCLLogger::Write
void Write(PriorityLevelEnum level, std::string const &content) override
itk::OpenCLLogger::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkOpenCLLogger.h:44
itk::OpenCLLogger::m_Created
bool m_Created
Definition itkOpenCLLogger.h:103
itk::OpenCLLogger::~OpenCLLogger
~OpenCLLogger() override
itk::OpenCLLogger::Self
OpenCLLogger Self
Definition itkOpenCLLogger.h:41
itk::OpenCLLogger::GetLogFileName
std::string GetLogFileName() const
Definition itkOpenCLLogger.h:67
itk::OpenCLLogger::m_FileStream
std::ostream * m_FileStream
Definition itkOpenCLLogger.h:102
itk::OpenCLLogger::IsCreated
bool IsCreated() const
itk::OpenCLLogger::Superclass
LoggerBase Superclass
Definition itkOpenCLLogger.h:42
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |