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 
11 #ifndef _ASCANNINGSDK_LOG_H_
12 #define _ASCANNINGSDK_LOG_H_
13 
14 #ifndef ASCANNINGSDK_DISABLE_TRACING
15 #include <artec/sdk/base/Log.h>
16 
17 namespace artec { namespace sdk { namespace scanning
18 {
19 
20 #define ASCANNINGSDK_MESSAGE(severity, ...) { if (artec::sdk::base::getOutputLevel() >= severity) artec::sdk::base::report(severity, L"ASCANNING", __VA_ARGS__); }
21 #define ASCANNINGSDK_INFO(...) ASCANNINGSDK_MESSAGE(artec::sdk::base::VerboseLevel_Info, __VA_ARGS__)
22 #define ASCANNINGSDK_ERROR(...) ASCANNINGSDK_MESSAGE(artec::sdk::base::VerboseLevel_Error, __VA_ARGS__)
23 #define ASCANNINGSDK_WARNING(...) ASCANNINGSDK_MESSAGE(artec::sdk::base::VerboseLevel_Warning, __VA_ARGS__)
24 #define ASCANNINGSDK_TRACE(...) ASCANNINGSDK_MESSAGE(artec::sdk::base::VerboseLevel_Trace, __VA_ARGS__)
25 
26 } } } // namespace artec::sdk::algorithms
27 
28 #else
29 
30 #define ASCANNINGSDK_MESSAGE(severity, ...) {}
31 #define ASCANNINGSDK_INFO(...) {}
32 #define ASCANNINGSDK_ERROR(...) {}
33 #define ASCANNINGSDK_WARNING(...) {}
34 #define ASCANNINGSDK_TRACE(...) {}
35 
36 #endif
37 
38 #endif // _ASCANNINGSDK_LOG_H_