go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
itk::OpenCLLogger Class Reference

#include <itkOpenCLLogger.h>

Detailed Description

Used for logging OpenCL compiler errors during a run.

Author
Denis P. Shamonin and Marius Staring. Division of Image Processing, Department of Radiology, Leiden, The Netherlands
Note
This work was funded by the Netherlands Organisation for Scientific Research (NWO NRG-2010.02 and NWO 639.021.124).

Definition at line 36 of file itkOpenCLLogger.h.

+ Inheritance diagram for itk::OpenCLLogger:

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef OpenCLLogger Self
 
typedef LoggerBase Superclass
 

Public Member Functions

virtual const char * GetClassName () const
 
std::string GetLogFileName () const
 
bool IsCreated () const
 
void SetLogFileNamePrefix (const std::string &prefix)
 
virtual void SetOutputDirectory (const char *_arg)
 
void Write (PriorityLevelEnum level, std::string const &content) override
 

Static Public Member Functions

static Pointer GetInstance ()
 
static Pointer New ()
 

Protected Member Functions

void Initialize ()
 
 OpenCLLogger ()
 
 ~OpenCLLogger () override
 

Private Member Functions

 OpenCLLogger (const Self &)
 
void operator= (const Self &)
 

Private Attributes

bool m_Created
 
std::string m_FileName
 
std::ostream * m_FileStream
 
std::string m_OutputDirectory
 
itk::StdStreamLogOutput::Pointer m_Stream
 

Static Private Attributes

static Pointer m_Instance
 

Member Typedef Documentation

◆ ConstPointer

typedef SmartPointer< const Self > itk::OpenCLLogger::ConstPointer

Definition at line 43 of file itkOpenCLLogger.h.

◆ Pointer

typedef SmartPointer< Self > itk::OpenCLLogger::Pointer

Definition at line 42 of file itkOpenCLLogger.h.

◆ Self

Definition at line 40 of file itkOpenCLLogger.h.

◆ Superclass

Definition at line 41 of file itkOpenCLLogger.h.

Constructor & Destructor Documentation

◆ OpenCLLogger() [1/2]

itk::OpenCLLogger::OpenCLLogger ( )
protected

Constructor

◆ ~OpenCLLogger()

itk::OpenCLLogger::~OpenCLLogger ( )
overrideprotected

Destructor

◆ OpenCLLogger() [2/2]

itk::OpenCLLogger::OpenCLLogger ( const Self )
private

Member Function Documentation

◆ GetClassName()

virtual const char * itk::OpenCLLogger::GetClassName ( ) const
virtual

Run-time type information (and related methods).

◆ GetInstance()

static Pointer itk::OpenCLLogger::GetInstance ( )
static

Return the singleton instance with no reference counting.

◆ GetLogFileName()

std::string itk::OpenCLLogger::GetLogFileName ( ) const
inline

Get the log filename.

Definition at line 62 of file itkOpenCLLogger.h.

◆ Initialize()

void itk::OpenCLLogger::Initialize ( )
protected

Initialize

◆ IsCreated()

bool itk::OpenCLLogger::IsCreated ( ) const

Returns true if the underlying OpenCL logger has been created, false otherwise.

◆ New()

static Pointer itk::OpenCLLogger::New ( )
static

This is a singleton pattern New. There will only be ONE reference to a OpenCLLogger object per process. Clients that call this must call Delete on the object so that the reference counting will work. The single instance will be unreferenced when the program exits.

◆ operator=()

void itk::OpenCLLogger::operator= ( const Self )
private

◆ SetLogFileNamePrefix()

void itk::OpenCLLogger::SetLogFileNamePrefix ( const std::string &  prefix)

Set log filename prefix.

◆ SetOutputDirectory()

virtual void itk::OpenCLLogger::SetOutputDirectory ( const char *  _arg)
virtual

Set output directory for logger.

◆ Write()

void itk::OpenCLLogger::Write ( PriorityLevelEnum  level,
std::string const &  content 
)
override

Overloaded.

Field Documentation

◆ m_Created

bool itk::OpenCLLogger::m_Created
private

Definition at line 97 of file itkOpenCLLogger.h.

◆ m_FileName

std::string itk::OpenCLLogger::m_FileName
private

Definition at line 92 of file itkOpenCLLogger.h.

◆ m_FileStream

std::ostream* itk::OpenCLLogger::m_FileStream
private

Definition at line 96 of file itkOpenCLLogger.h.

◆ m_Instance

Pointer itk::OpenCLLogger::m_Instance
staticprivate

Definition at line 87 of file itkOpenCLLogger.h.

◆ m_OutputDirectory

std::string itk::OpenCLLogger::m_OutputDirectory
private

Definition at line 93 of file itkOpenCLLogger.h.

◆ m_Stream

itk::StdStreamLogOutput::Pointer itk::OpenCLLogger::m_Stream
private

Definition at line 95 of file itkOpenCLLogger.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo