Artec 3D Scanning SDK
2.0
Main Page
Basics
Namespaces
Classes
Files
Samples
Beyond Basics
File List
File Members
artec
sdk
project
Log.h
Go to the documentation of this file.
1
/********************************************************************
2
*
3
* Project Artec 3D Scanning SDK
4
*
5
* Purpose: log code
6
*
7
* Copyright: Artec Group
8
*
9
********************************************************************/
10
#pragma once
11
12
#ifndef ADATASDK_DISABLE_TRACING
13
#include <
artec/sdk/base/Log.h
>
14
15
#define ADATASDK_MESSAGE(severity, ...) { if (artec::sdk::base::getOutputLevel() >= severity) artec::sdk::base::report(severity, L"DATA", __VA_ARGS__); }
16
#define ADATASDK_INFO(...) ADATASDK_MESSAGE(artec::sdk::base::VerboseLevel_Info, __VA_ARGS__)
17
#define ADATASDK_ERROR(...) ADATASDK_MESSAGE(artec::sdk::base::VerboseLevel_Error, __VA_ARGS__)
18
#define ADATASDK_WARNING(...) ADATASDK_MESSAGE(artec::sdk::base::VerboseLevel_Warning, __VA_ARGS__)
19
#define ADATASDK_TRACE(...) ADATASDK_MESSAGE(artec::sdk::base::VerboseLevel_Trace, __VA_ARGS__)
20
21
#else
22
23
#define ADATASDK_MESSAGE(severity, ...) {}
24
#define ADATASDK_INFO(...) {}
25
#define ADATASDK_ERROR(...) {}
26
#define ADATASDK_WARNING(...) {}
27
#define ADATASDK_TRACE(...) {}
28
29
#endif
Log.h
Generated by
1.8.9.1