MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
event.cpp
Go to the documentation of this file.
1//=============================================================================================================
36//=============================================================================================================
37// INCLUDES
38//=============================================================================================================
39
40#include "event.h"
41#include "eventgroup.h"
42
43//=============================================================================================================
44// QT INCLUDES
45//=============================================================================================================
46
47//=============================================================================================================
48// EIGEN INCLUDES
49//=============================================================================================================
50
51//=============================================================================================================
52// USED NAMESPACES
53//=============================================================================================================
54
55using namespace EVENTSLIB;
56
57//=============================================================================================================
58// INIT STATIC MEMBERS
59//=============================================================================================================
60
61//=============================================================================================================
62// DEFINE MEMBER METHODS
63//=============================================================================================================
64
66:Event(0,0,0)
67{ }
68
69//=============================================================================================================
70
71Event::Event(const idNum id,const int sample, const idNum groupId)
72: id(id)
73, sample(sample)
74, groupId(groupId)
75{ }
76
77//=============================================================================================================
78
80: Event(e.getId(), e.getSample(), e.getGroupId())
81{ }
82
83//=============================================================================================================
84
86: EventINT(id, 0, 0)
87{ }
88
89//=============================================================================================================
90
91EVENTSINTERNAL::EventINT::EventINT(idNum id, int iSample, idNum groupId)
92: m_iId(id)
93, m_iSample(iSample)
94, m_iGroup(groupId)
95, m_sDescription("")
96{ }
97
98//=============================================================================================================
99
101: m_iId(rhs.getId())
102, m_iSample(rhs.getSample())
103, m_iGroup(rhs.getGroupId())
104, m_sDescription(rhs.getDescription())
105{ }
106
107//=============================================================================================================
108
110: m_iId(other.getId())
111, m_iSample(other.getSample())
112, m_iGroup(other.getGroupId())
113, m_sDescription(other.getDescription())
114{ }
115
116//=============================================================================================================
117
119{
120 return m_iSample;
121}
122
123//=============================================================================================================
124
126{
127 m_iSample = iSample;
128}
129
130//=============================================================================================================
131
133{
134 return m_iGroup;
135}
136
137//=============================================================================================================
138
140{
141 m_iGroup = iGroup;
142}
143
144//=============================================================================================================
145
147{
148 return m_iId;
149}
150
151//=============================================================================================================
152
154{
155 return m_sDescription;
156}
157
158//=============================================================================================================
159
161{
162 return m_iSample < rhs.getSample();
163}
164
165//=============================================================================================================
166
168{
169 return (m_iId == rhs.getId());
170}
171
EventGroup declaration.
Event declaration.
bool operator<(const EventINT &rhs) const
Definition event.cpp:160
void setGroupId(idNum iGroup)
Definition event.cpp:139
std::string getDescription() const
Definition event.cpp:153
EventINT operator=(const EventINT &rhs)
Definition event.cpp:172
bool operator==(const EventINT &rhs) const
Definition event.cpp:167