DataDirector API
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
DataDirectorWin
include
DDD_LogFacade.h
Go to the documentation of this file.
1
#ifndef DDD_LOGGER_H_
2
#define DDD_LOGGER_H_
3
4
/*! \file DDD_LogFacade.h
5
6
7
\par Copyright Information
8
9
Copyright (c) 2012 The DiSTI Corporation.<br>
10
11301 Corporate Blvd; Suite 100<br>
11
Orlando, Florida 32817<br>
12
USA<br>
13
<br>
14
All rights reserved.<br>
15
16
This Software contains proprietary trade secrets of DiSTI and may not be
17
reproduced, in whole or part, in any form, or by any means of electronic,
18
mechanical, or otherwise, without the written permission of DiSTI. Said
19
permission may be derived through the purchase of applicable DiSTI product
20
licenses which detail the distribution rights of this content and any
21
Derivative Works based on this or other copyrighted DiSTI Software.
22
23
NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
24
AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
25
PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
26
AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27
IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
28
PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
29
30
LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
31
IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
32
INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
33
DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
34
INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
35
INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBLITY
36
OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
37
EXCEED FIVE DOLLARS (US$5.00).
38
39
The aforementioned terms and restrictions are governed by the laws of the
40
State of Florida and the United States of America.
41
42
*/
43
#include "
DDD_Include.h
"
44
#include <string>
45
46
namespace
disti
47
{
48
/** \brief Facade to provide a simpler interface to the DDD_Log singleton. Its second purpose is for decoupling;
49
it eliminates user plugins dependencies on DDD_Log (and its dependencies). */
50
class
DDD_EXPORT
DDD_LogFacade
51
{
52
public
:
53
/** Sends a string to log with debug level (general info) importance
54
* \param format C style printf format string
55
*/
56
static
void
LogDebug(
const
char
*format,...);
57
58
/** Sends a string to log with low level (general info) importance
59
* \param format C style printf format string
60
*/
61
static
void
LogInfo(
const
char
*format,...);
62
63
/** Sends a string to log with mid level (warning) importance
64
* \param format C style printf format string
65
*/
66
static
void
LogWarning(
const
char
*format,...);
67
68
/** Sends a string to log with high level (error) importance
69
* \param format C style printf format string
70
*/
71
static
void
LogError(
const
char
*format,...);
72
};
73
74
75
/** \def DDD_LogDebug(X) Macro for debug logging.
76
\a X should be the same syntax as the Log* methods in DDD_LogFacade. */
77
#ifdef DDD_LOG_DEBUG
78
#define DDD_LogDebug(X) DDD_LogFacade::LogInfo(X)
79
#else
80
#define DDD_LogDebug(X) ((void)0)
81
#endif // DDD_LOG_DEBUG
82
83
84
85
}
// end of namespace disti
86
87
#endif
88
disti::DDD_LogFacade
Facade to provide a simpler interface to the DDD_Log singleton. Its second purpose is for decoupling;...
Definition:
DDD_LogFacade.h:50
DDD_Include.h
disti
Definition:
AttributeChangedEmitter.h:46
Generated by
1.8.10