Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
i
k
l
o
p
r
s
t
u
Functions
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
+
Files
File List
+
File Members
+
All
d
g
i
l
m
s
v
+
Functions
m
v
Variables
+
Typedefs
v
Enumerations
+
Enumerator
v
Macros
include
VimbaCPP
Include
LoggerDefines.h
Go to the documentation of this file.
1
/*=============================================================================
2
Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
3
4
Redistribution of this file, in original or modified form, without
5
prior written consent of Allied Vision Technologies is prohibited.
6
7
-------------------------------------------------------------------------------
8
9
File: LoggerDefines.h
10
11
Description: Definition of macros for logging.
12
13
-------------------------------------------------------------------------------
14
15
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
16
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
17
NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
23
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26
=============================================================================*/
27
28
#ifndef AVT_VMBAPI_LOGGERDEFINES_H
29
#define AVT_VMBAPI_LOGGERDEFINES_H
30
31
#include <
VimbaCPP/Include/UserLoggerDefines.h
>
32
33
#ifndef USER_LOGGER
34
35
#include <
VimbaCPP/Include/FileLogger.h
>
36
37
namespace
AVT
{
38
namespace
VmbAPI {
39
40
#define LOGGER_DECL FileLogger
41
#define LOGGER_DEF FileLogger( "VimbaCPP.log", true )
42
#define LOGGER_LOG( logger, loggingInfo ) if ( NULL != (logger) ) (logger)->Log( loggingInfo );
43
44
45
// These are all uses of LOGGER_DECL logger declarations
46
typedef
LOGGER_DECL
*
Logger
;
47
48
}}
49
50
#else
51
#include <
VimbaCPP/Include/UserLoggerDefines.h
>
52
#endif
53
54
#include <
VimbaCPP/Include/VimbaSystem.h
>
55
56
#define LOG_FREE_TEXT( txt ) std::string strExc( txt );\
57
strExc.append( " in function: " );\
58
strExc.append( __FUNCTION__ );\
59
LOGGER_LOG( VimbaSystem::GetInstance().GetLogger(), strExc );
60
61
#endif
FileLogger.h
LOGGER_DECL
#define LOGGER_DECL
Definition:
LoggerDefines.h:40
VimbaSystem.h
AVT::VmbAPI::Logger
LOGGER_DECL * Logger
Definition:
LoggerDefines.h:46
AVT
Definition:
AncillaryData.h:35
UserLoggerDefines.h
avt_vimba_camera
Author(s): Allied Vision Technologies, Miquel Massot
autogenerated on Fri Jun 2 2023 02:21:10