@@ -63,7 +63,7 @@ class DurationDataInterval {
63
63
// / @brief Get the number of occurrences that have contributed to the
64
64
// / interval.
65
65
// /
66
- // / @return uint64_t containing the number of occurrences.
66
+ // / @return the number of occurrences.
67
67
uint64_t getOccurrences () const {
68
68
return (occurrences_);
69
69
};
@@ -119,20 +119,20 @@ typedef boost::shared_ptr<DurationDataInterval> DurationDataIntervalPtr;
119
119
// / -# Response Packet Type
120
120
// / -# Start Event
121
121
// / -# End Event
122
- // / -# Subnet ID can be GLOBAL_SUBNET_ID for aggregate durations
122
+ // / -# Subnet ID can be GLOBAL_SUBNET_ID for aggregate durations
123
123
class DurationKey {
124
124
public:
125
125
// / @brief Constructor
126
126
// /
127
127
// / @param family protocol family AF_INET or AF_INET6
128
128
// / @param query_type message type of the query packet
129
- // / @param response_type_ message type of the response packet
129
+ // / @param response_type message type of the response packet
130
130
// / @param start_event_label label of the start event
131
131
// / @param end_event_label label of the end event
132
- // / @param SubnetID subnet_id id of the selected subnet
133
- DurationKey (uint16_t family, uint8_t query_type_ , uint8_t response_type_ ,
132
+ // / @param subnet_id id of the selected subnet
133
+ DurationKey (uint16_t family, uint8_t query_type , uint8_t response_type ,
134
134
const std::string& start_event_label, const std::string& end_event_label,
135
- dhcp::SubnetID subnet_id_ );
135
+ dhcp::SubnetID subnet_id );
136
136
137
137
// / @brief Destructor
138
138
virtual ~DurationKey () = default ;
@@ -141,33 +141,33 @@ class DurationKey {
141
141
// /
142
142
// / @return uint16_t containing the family (AF_INET or AF_INET6)
143
143
uint16_t getFamily () {
144
- return (family_);
144
+ return (family_);
145
145
}
146
146
147
147
// / @brief Get the query packet type.
148
148
// /
149
- // / @return uint8_t containing the query packet type.
149
+ // / @return the query packet type.
150
150
uint8_t getQueryType () const {
151
151
return (query_type_);
152
152
}
153
153
154
154
// / @brief Get the response packet type.
155
155
// /
156
- // / @return uint8_t containing the response packet type.
156
+ // / @return the response packet type.
157
157
uint8_t getResponseType () const {
158
158
return (response_type_);
159
159
};
160
160
161
161
// / @brief Get the start event label.
162
162
// /
163
- // / @return String containing the start event label.
163
+ // / @return the start event label.
164
164
std::string getStartEventLabel () const {
165
165
return (start_event_label_);
166
166
}
167
167
168
168
// / @brief Get the end event label.
169
169
// /
170
- // / @return String containing the end event label.
170
+ // / @return the end event label.
171
171
std::string getEndEventLabel () const {
172
172
return (end_event_label_);
173
173
}
@@ -197,27 +197,27 @@ class DurationKey {
197
197
// /
198
198
// / @endcode
199
199
// /
200
- // / @return String containing the composite label.
200
+ // / @return the composite label.
201
201
std::string getLabel () const ;
202
202
203
203
// / @brief Validates that a query and response message type pair is sane.
204
204
// /
205
205
// / @param family Protocol family of the key (AF_INET or AF_INET6)
206
206
// / The format of the string:
207
207
// / @param query_type message type of the query packet
208
- // / @param response_type_ message type of the response packet
208
+ // / @param response_type message type of the response packet
209
209
// /
210
210
// / @throw BadValue is the pairing does not make sense.
211
211
static void validateMessagePair (uint16_t family, uint8_t query_type, uint8_t response_type);
212
212
213
213
protected:
214
- // / @brief Protocol family AF_INET or AF_INET6
214
+ // / @brief Protocol family AF_INET or AF_INET6.
215
215
uint16_t family_;
216
216
217
- // / @brief Query message type (e.g. DHCPDISCOVER, DHCP6_SOLICIT)
217
+ // / @brief Query message type (e.g. DHCPDISCOVER, DHCP6_SOLICIT).
218
218
uint8_t query_type_;
219
219
220
- // / @brief Response message type. (e.g. DHCPOFFER, DHCP6_ADVERTISE)
220
+ // / @brief Response message type (e.g. DHCPOFFER, DHCP6_ADVERTISE).
221
221
uint8_t response_type_;
222
222
223
223
// / @brief Label of the start event which begins the duration.
@@ -239,39 +239,39 @@ class MonitoredDuration : public DurationKey {
239
239
// /
240
240
// / @param family protocol family AF_INET or AF_INET6
241
241
// / @param query_type message type of the query packet
242
- // / @param response_type_ message type of the response packet
242
+ // / @param response_type message type of the response packet
243
243
// / @param start_event_label label of the start event
244
244
// / @param end_event_label label of the end event
245
- // / @param SubnetID subnet_id id of the selected subnet
246
- // / @param Duration interval_duration_;
247
- MonitoredDuration (uint16_t family, uint8_t query_type_ , uint8_t response_type_ ,
245
+ // / @param subnet_id id of the selected subnet
246
+ // / @param interval_duration the interval duration
247
+ MonitoredDuration (uint16_t family, uint8_t query_type , uint8_t response_type ,
248
248
const std::string& start_event_label, const std::string& end_event_label,
249
- dhcp::SubnetID subnet_id_ , const Duration& interval_duration_ );
249
+ dhcp::SubnetID subnet_id , const Duration& interval_duration );
250
250
251
251
// / @brief Constructor
252
252
// /
253
- // / param key composite key that identifies the alarm
254
- // / @param Duration interval_duration_;
255
- MonitoredDuration (const DurationKey& key, const Duration& interval_duration_ );
253
+ // / @ param key composite key that identifies the alarm
254
+ // / @param interval_duration the interval duration
255
+ MonitoredDuration (const DurationKey& key, const Duration& interval_duration );
256
256
257
257
// / @brief Destructor
258
258
virtual ~MonitoredDuration () = default ;
259
259
260
- // / @brief Get the interval duration
260
+ // / @brief Get the interval duration.
261
261
// /
262
262
// / @return Duration containing the interval duration.
263
263
Duration getIntervalDuration () const {
264
- return (interval_duration_);
264
+ return (interval_duration_);
265
265
}
266
266
267
- // / @brief Get the previous interval
267
+ // / @brief Get the previous interval.
268
268
// /
269
269
// / @return Pointer to the previous interval if it exists or an empty pointer.
270
270
DurationDataIntervalPtr getPreviousInterval () const {
271
271
return (previous_interval_);
272
272
}
273
273
274
- // / @brief Get the current interval
274
+ // / @brief Get the current interval.
275
275
// /
276
276
// / @return Pointer to the current interval if it exists or an empty pointer.
277
277
DurationDataIntervalPtr getCurrentInterval () const {
0 commit comments