-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestHandler.cpp
77 lines (65 loc) · 2.11 KB
/
TestHandler.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// -----------------------------------------------------------------------------
// TestHandler.cpp TestHandler.cpp
// -----------------------------------------------------------------------------
/**
* @file
* @brief This file holds the implementation of the @ref TestHandler class.
* @author Col. Walter E. Kurtz
* @version 2016-06-20
* @copyright GNU General Public License - Version 3.0
*/
// -----------------------------------------------------------------------------
// Includes Includes
// -----------------------------------------------------------------------------
#include <iostream>
#include "TestHandler.h"
// -----------------------------------------------------------------------------
// Used namespaces Used namespaces
// -----------------------------------------------------------------------------
using namespace std;
// -----------------------------------------------------------------------------
// Construction Construction
// -----------------------------------------------------------------------------
// -----------
// TestHandler
// -----------
/*
*
*/
TestHandler::TestHandler()
{
// initialization
}
// -----------------------------------------------------------------------------
// Callback handler Callback handler
// -----------------------------------------------------------------------------
// --------------
// OnBeginParsing
// --------------
/*
*
*/
void TestHandler::OnBeginParsing(const string& filename)
{
cout << "OnBeginParsing(\"" << filename << "\")" << endl;
}
// ------------
// OnEndParsing
// ------------
/*
*
*/
void TestHandler::OnEndParsing(bool healthy)
{
cout << "OnEndParsing(" << (healthy ? "true" : "false") << ")" << endl;
}
// ------
// OnData
// ------
/*
*
*/
void TestHandler::OnData(const string& key, const string& value)
{
cout << "OnData(\"" << key << "\", \"" << value << "\")" << endl;
}