Artec 3D Scanning SDK  2.0
Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
Log.h File Reference
#include <artec/sdk/base/BaseSdkDefines.h>
#include <wctype.h>
#include <cstdarg>

Go to the source code of this file.

Namespaces

 artec
 
 artec::sdk
 
 artec::sdk::base
 

Macros

#define ABASESDK_MESSAGE(severity, ...)   { if (getOutputLevel() >= severity) report(severity, L"BASE", __VA_ARGS__); }
 
#define ABASESDK_INFO(...)   ABASESDK_MESSAGE(VerboseLevel_Info, __VA_ARGS__)
 
#define ABASESDK_ERROR(...)   ABASESDK_MESSAGE(VerboseLevel_Error, __VA_ARGS__)
 
#define ABASESDK_WARNING(...)   ABASESDK_MESSAGE(VerboseLevel_Warning, __VA_ARGS__)
 
#define ABASESDK_TRACE(...)   ABASESDK_MESSAGE(VerboseLevel_Trace, __VA_ARGS__)
 

Typedefs

typedef int(* artec::sdk::base::REPORT_HOOK) (int, const wchar_t *)
 

Enumerations

enum  artec::sdk::base::VerboseLevel {
  artec::sdk::base::VerboseLevel_Disable = -1,
  artec::sdk::base::VerboseLevel_Error,
  artec::sdk::base::VerboseLevel_Warning,
  artec::sdk::base::VerboseLevel_Info,
  artec::sdk::base::VerboseLevel_Trace,
  artec::sdk::base::VerboseLevel_Number
}
 The level of detail of verbose output. More...
 

Functions

void ABASESDK_LINK_SPEC artec::sdk::base::setOutputLevel (int mode)
 
int ABASESDK_LINK_SPEC artec::sdk::base::getOutputLevel ()
 
bool ABASESDK_LINK_SPEC artec::sdk::base::setReportHook (int mode, REPORT_HOOK newHook)
 
void ABASESDK_LINK_SPEC artec::sdk::base::report (int verboseLevel, const wchar_t *module, const wchar_t *format,...)
 
void ABASESDK_LINK_SPEC artec::sdk::base::vReport (int verboseLevel, const wchar_t *module, const wchar_t *format, va_list args)
 

Variables

const int artec::sdk::base::RPTHOOK_INSTALL = 0
 
const int artec::sdk::base::RPTHOOK_REMOVE = 1
 

Macro Definition Documentation

#define ABASESDK_ERROR (   ...)    ABASESDK_MESSAGE(VerboseLevel_Error, __VA_ARGS__)

Definition at line 66 of file Log.h.

#define ABASESDK_INFO (   ...)    ABASESDK_MESSAGE(VerboseLevel_Info, __VA_ARGS__)

Definition at line 65 of file Log.h.

#define ABASESDK_MESSAGE (   severity,
  ... 
)    { if (getOutputLevel() >= severity) report(severity, L"BASE", __VA_ARGS__); }

Definition at line 64 of file Log.h.

#define ABASESDK_TRACE (   ...)    ABASESDK_MESSAGE(VerboseLevel_Trace, __VA_ARGS__)

Definition at line 68 of file Log.h.

#define ABASESDK_WARNING (   ...)    ABASESDK_MESSAGE(VerboseLevel_Warning, __VA_ARGS__)

Definition at line 67 of file Log.h.