NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::logger::BinaryLogger Class Reference

Binary Logger Singleton. More...

#include <BinaryLogger.hpp>

Public Member Functions

 BinaryLogger (BinaryLogger &&)=delete
 
 BinaryLogger (const BinaryLogger &)=delete
 
template<typename DataType >
detail::BinaryDataLogger< DataType > & getTypeLogger ()
 Gets the logger instance for the specific data type. More...
 
BinaryLoggeroperator= (BinaryLogger &&)=delete
 
BinaryLoggeroperator= (const BinaryLogger &)=delete
 
void setOutputDir (const std::filesystem::path &outputDir)
 Sets the output directory. This should be called BEFORE any type loggers have been created, and will NOT reset the output directory afterwards! More...
 
void setOutputDir (std::string_view outputDir)
 Sets the output directory. This should be called BEFORE any type loggers have been created, and will NOT reset the output directory afterwards! More...
 

Static Public Member Functions

static BinaryLoggergetInstance () noexcept
 Singleton instance getter. More...
 

Detailed Description

Binary Logger Singleton.

Constructor & Destructor Documentation

◆ BinaryLogger() [1/2]

nc::logger::BinaryLogger::BinaryLogger ( const BinaryLogger )
delete

◆ BinaryLogger() [2/2]

nc::logger::BinaryLogger::BinaryLogger ( BinaryLogger &&  )
delete

Member Function Documentation

◆ getInstance()

static BinaryLogger & nc::logger::BinaryLogger::getInstance ( )
inlinestaticnoexcept

Singleton instance getter.

Returns
: singleton instance of BinaryLogger

◆ getTypeLogger()

template<typename DataType >
detail::BinaryDataLogger< DataType > & nc::logger::BinaryLogger::getTypeLogger ( )
inline

Gets the logger instance for the specific data type.

Returns
data type logger instance

◆ operator=() [1/2]

BinaryLogger & nc::logger::BinaryLogger::operator= ( BinaryLogger &&  )
delete

◆ operator=() [2/2]

BinaryLogger & nc::logger::BinaryLogger::operator= ( const BinaryLogger )
delete

◆ setOutputDir() [1/2]

void nc::logger::BinaryLogger::setOutputDir ( const std::filesystem::path &  outputDir)
inline

Sets the output directory. This should be called BEFORE any type loggers have been created, and will NOT reset the output directory afterwards!

Parameters
outputDirthe output directory

◆ setOutputDir() [2/2]

void nc::logger::BinaryLogger::setOutputDir ( std::string_view  outputDir)
inline

Sets the output directory. This should be called BEFORE any type loggers have been created, and will NOT reset the output directory afterwards!

Parameters
outputDirthe output directory

The documentation for this class was generated from the following file: