kanzi::detail Namespace Reference

Classes

class  ChainedLogger
 Provides interface to write log messages to multiple loggers. More...
 
struct  CharArrayDeleter
 Deleter for string data. More...
 
struct  ComplexDataTypeTraits
 
class  Event
 Event object. More...
 
struct  IntegerToLogLevel
 Converts integer representation of log level to enumeration. More...
 
struct  IntegerToLogLevel< KZ_LOG_GET_LEVEL_VALUE(KZ_LOG_LEVEL_ERROR)>
 Converts integer representation of error log level to enumeration. More...
 
struct  IntegerToLogLevel< KZ_LOG_GET_LEVEL_VALUE(KZ_LOG_LEVEL_INFO)>
 Converts integer value of info log level to enumeration. More...
 
struct  IntegerToLogLevel< KZ_LOG_GET_LEVEL_VALUE(KZ_LOG_LEVEL_TRACE)>
 Converts integer value of trace log level to enumeration. More...
 
struct  IntegerToLogLevel< KZ_LOG_GET_LEVEL_VALUE(KZ_LOG_LEVEL_WARNING)>
 Converts integer value of warning log level to enumeration. More...
 
class  LogArgumentFormat
 Represents log message argument formatting interface. More...
 
struct  LogArgumentSupportsFormatting
 Aimed to check if type T supports formatting or not. More...
 
struct  LogArgumentSupportsPrecisionFormatting
 
class  LogArgumentTypeEraser
 Log argument reference holder. More...
 
class  LogRecord
 This class represents log record that accumulates multiple log messages and writes them as a sole message to the logger when object of this class is destroyed. More...
 
struct  PrimitiveDataTypeTraits
 
struct  ProfilerRegistrationHelper
 Registered profiler instance. More...
 
struct  ProfilingCategorySingletonInitializer
 Guarantees creation of profiling category singleton object associated with unique profiling category type defined with KZ_DETAIL_PROFILING_REGISTER_CATEGORY() and passed as template parameter. More...
 
class  StringLogger
 Stores log messages in a string for later retreival by error reporting subsystem. More...
 
struct  VectorDataTypeTraits
 

Typedefs

typedef unique_ptr< const char, CharArrayDeleterCharArrayPtr
 String data. More...
 

Functions

KANZI_API KZ_ATTRIBUTE_NO_RETURN void terminateProgram ()
 This function terminates program execution. More...
 
KANZI_API void debugBreak ()
 Used internally by assertion system in order to insert breakpoint if debugger is attached. More...
 
CharArrayPtr createCharArrayPtr (string_view content)
 Create string data from a string view. More...
 

Typedef Documentation

typedef unique_ptr<const char, CharArrayDeleter> kanzi::detail::CharArrayPtr

String data.

Function Documentation

KANZI_API KZ_ATTRIBUTE_NO_RETURN void kanzi::detail::terminateProgram ( )

This function terminates program execution.

This function inserts breakpoint using kzDebugBreak() and then terminates program if execution continues after calling kzDebugBreak(). See kzDebugBreak() for more information on how breakpoint is inserted.

KANZI_API void kanzi::detail::debugBreak ( )

Used internally by assertion system in order to insert breakpoint if debugger is attached.

See kzDebugBreak() macro for details.

CharArrayPtr kanzi::detail::createCharArrayPtr ( string_view  content)
inline

Create string data from a string view.

Parameters
contentstring_view to create from.
Returns
C -style string in unique_ptr.