-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEventTransportReaderDebug.cxx
110 lines (82 loc) · 2.43 KB
/
EventTransportReaderDebug.cxx
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*ckwg +5
* Copyright 2010 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <EventTransportReaderDebug.h>
#include <vcl_iostream.h>
namespace RightTrack {
namespace Internal {
int EventTransportReaderDebug::
NewEvent(EventDefinition const& msg)
{
vcl_cout << "Event definition: "
<< " name: \"" << msg.event_name << "\""
<< " id: " << msg.event_id
<< " time: " << msg.event_time.secs << "." << msg.event_time.usecs
<< " type: " << msg.event_type
<< " group: " << msg.event_group
<< " color: " << msg.event_color
<< vcl_endl;
return (0);
}
int EventTransportReaderDebug::
NewEvent(EventStart const& msg)
{
vcl_cout << "Event start: "
<< " id: " << msg.event_id
<< " time: " << msg.event_time.secs << "." << msg.event_time.usecs
<< " pid: " << msg.event_pid
<< " data: " << msg.event_data
<< vcl_endl;
return (0);
}
int EventTransportReaderDebug::
NewEvent(EventEnd const& msg)
{
vcl_cout << "Event end: "
<< " id: " << msg.event_id
<< " time: " << msg.event_time.secs << "." << msg.event_time.usecs
<< " pid: " << msg.event_pid
<< " data: " << msg.event_data
<< vcl_endl;
return (0);
}
int EventTransportReaderDebug::
NewEvent(EventText const& msg)
{
vcl_cout << "Event text: "
<< " id: " << msg.event_id
<< " time: " << msg.event_time.secs << "." << msg.event_time.usecs
<< " pid: " << msg.event_pid
<< " text: \"" << msg.event_text << "\""
<< vcl_endl;
return (0);
}
int EventTransportReaderDebug::
NewEvent(ContextDefinition const& msg)
{
vcl_cout << "Context definition: "
<< " name: \"" << msg.context_name << "\""
<< " id: " << msg.context_id
<< vcl_endl;
return (0);
}
int EventTransportReaderDebug::
NewEvent(ContextPush const& msg)
{
vcl_cout << "Context push: "
<< " id: " << msg.context_id
<< vcl_endl;
return (0);
}
int EventTransportReaderDebug::
NewEvent(ContextPop const& msg)
{
vcl_cout << "Context pop: "
<< " id: " << msg.context_id
<< vcl_endl;
return (0);
}
} // end namespace
} // end namespace