-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRightTrackItem.cxx
74 lines (58 loc) · 1.23 KB
/
RightTrackItem.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
/*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 <RightTrackItem.h>
#include <EventManager.h>
namespace RightTrack {
namespace Internal {
// ----------------------------------------------------------------
/** Constructor.
*
*
*/
RightTrackItem::
RightTrackItem(vcl_string const& name)
: m_itemName(name)
{
// Get handle to the manager.
m_manager = ::RightTrack::Internal::EventManager::Instance();
m_itemId = Manager()->GetNextId();
}
RightTrackItem::
~RightTrackItem()
{
}
// ----------------------------------------------------------------
/** Return Event ID.
*
*
*/
ItemId_t RightTrackItem::
ItemId() const
{
return m_itemId;
}
// ----------------------------------------------------------------
/** Return event name.
*
*
*/
vcl_string const & RightTrackItem::
ItemName() const
{
return m_itemName;
}
// ----------------------------------------------------------------
/** Return event manager object.
*
*
*/
Internal::EventManager * RightTrackItem::
Manager()
{
return m_manager;
}
} // end name space
} // end name space