CARMA C++
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
TimeOut.h
Go to the documentation of this file.
1
// $Id: TimeOut.h,v 1.2 2011/07/19 20:53:21 eml Exp $
2
3
#ifndef SZA_UTIL_TIMEOUT_H
4
#define SZA_UTIL_TIMEOUT_H
5
15
#include "
carma/szautil/TimeVal.h
"
16
17
namespace
sza {
18
namespace
util {
19
20
class
TimeOut {
21
public
:
22
23
// Default interval
24
25
static
const
unsigned
int
defaultInterval_ = 5*60;
26
27
// Public methods
28
29
TimeOut();
30
31
void
setIntervalInSeconds(
unsigned
int
seconds);
32
void
setInterval(
unsigned
int
seconds,
unsigned
nanoSeconds);
33
34
void
activate(
bool
active);
35
36
void
reset();
37
38
struct
timeval* tVal();
39
40
TimeVal timeOut_;
// The timeval managed by this class
41
42
private
:
43
44
bool
active_;
45
bool
resetPending_;
46
47
};
// End class TimeOut
48
49
}
// End namespace util
50
}
// End namespace sza
51
52
53
#endif // End #ifndef SZA_UTIL_TIMEOUT_H
TimeVal.h
Tagged: Fri Nov 14 12:39:38 UTC 2003.
carma
szautil
TimeOut.h
Generated by
1.8.5