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:
Inheritance graph
[legend]

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)
 
virtual void Write (PriorityLevelType level, std::string const &content) ITK_OVERRIDE
 

Static Public Member Functions

static Pointer GetInstance ()
 
static Pointer New ()
 

Protected Member Functions

void Initialize ()
 
 OpenCLLogger ()
 
virtual ~OpenCLLogger ()
 

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

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

Definition at line 43 of file itkOpenCLLogger.h.

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

Definition at line 42 of file itkOpenCLLogger.h.

Definition at line 40 of file itkOpenCLLogger.h.

Definition at line 41 of file itkOpenCLLogger.h.

Constructor & Destructor Documentation

itk::OpenCLLogger::OpenCLLogger ( )
protected

Constructor

virtual itk::OpenCLLogger::~OpenCLLogger ( )
protectedvirtual

Destructor

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

Member Function Documentation

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

Run-time type information (and related methods).

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

Return the singleton instance with no reference counting.

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

Get the log filename.

Definition at line 62 of file itkOpenCLLogger.h.

void itk::OpenCLLogger::Initialize ( )
protected

Initialize

bool itk::OpenCLLogger::IsCreated ( ) const

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

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.

void itk::OpenCLLogger::operator= ( const Self )
private
void itk::OpenCLLogger::SetLogFileNamePrefix ( const std::string &  prefix)

Set log filename prefix.

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

Set output directory for logger.

virtual void itk::OpenCLLogger::Write ( PriorityLevelType  level,
std::string const &  content 
)
virtual

Overloaded.

Field Documentation

bool itk::OpenCLLogger::m_Created
private

Definition at line 97 of file itkOpenCLLogger.h.

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

Definition at line 92 of file itkOpenCLLogger.h.

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

Definition at line 96 of file itkOpenCLLogger.h.

Pointer itk::OpenCLLogger::m_Instance
staticprivate

Definition at line 87 of file itkOpenCLLogger.h.

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

Definition at line 93 of file itkOpenCLLogger.h.

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

Definition at line 95 of file itkOpenCLLogger.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo