DataDirector API
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
DataDirectorWin
include
DDD_CSVLog.h
Go to the documentation of this file.
1
#ifndef _DDD_CSV_LOG_H_
2
#define _DDD_CSV_LOG_H_
3
4
/*! \file DDD_CSVLog.h
5
6
\par Copyright Information
7
8
Copyright (c) 2012 The DiSTI Corporation.<br>
9
11301 Corporate Blvd; Suite 100<br>
10
Orlando, Florida 32817<br>
11
USA<br>
12
<br>
13
All rights reserved.<br>
14
15
This Software contains proprietary trade secrets of DiSTI and may not be
16
reproduced, in whole or part, in any form, or by any means of electronic,
17
mechanical, or otherwise, without the written permission of DiSTI. Said
18
permission may be derived through the purchase of applicable DiSTI product
19
licenses which detail the distribution rights of this content and any
20
Derivative Works based on this or other copyrighted DiSTI Software.
21
22
NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
23
AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
24
PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
25
AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
26
IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
27
PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
28
29
LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
30
IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
31
INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
32
DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
33
INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
34
INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBLITY
35
OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
36
EXCEED FIVE DOLLARS (US$5.00).
37
38
The aforementioned terms and restrictions are governed by the laws of the
39
State of Florida and the United States of America.
40
41
*/
42
#include "
DDD_LogObserver.h
"
43
#include <iostream>
44
#include <fstream>
45
46
namespace
disti
47
{
48
49
/** \brief DDD_CSVLog. Logging observer that outputs to a CSV file.
50
*/
51
class
DDD_EXPORT
DDD_CSVLog
:
public
DDD_LogObserver
52
{
53
public
:
54
/** constructor
55
* \param outFileName The name of the log file to open
56
* \param clientName The name client (will be printed in the log)
57
*/
58
DDD_CSVLog
(
const
char
*outFileName,
const
char
*clientName);
59
60
/** destructor */
61
~
DDD_CSVLog
();
62
63
/** Write a log entry to the file
64
* \param entry The log entry to write
65
*/
66
virtual
void
LogEntry(
const
DDD_LogEntry
& entry);
67
68
/** Flush the log file */
69
void
Flush();
70
71
private
:
72
bool
_ready;
/**< True if the file is ready to write to */
73
std::ofstream _outFile;
/**< The output file to write to */
74
std::string _clientName;
/**< The name of client application using this */
75
};
76
77
}
78
79
#endif
80
disti::DDD_CSVLog
DDD_CSVLog. Logging observer that outputs to a CSV file.
Definition:
DDD_CSVLog.h:51
disti::DDD_LogEntry
Simple container for log entries.
Definition:
DDD_Log.h:55
DDD_LogObserver.h
disti::DDD_LogObserver
Abstract base class for log observers.
Definition:
DDD_LogObserver.h:52
disti
Definition:
AttributeChangedEmitter.h:46
Generated by
1.8.10