CARMA C++
Runnable.h
Go to the documentation of this file.
1 
2 #ifndef CARMA_MONITOR_RUNNABLE_H
3 #define CARMA_MONITOR_RUNNABLE_H
4 
20 namespace carma {
21  namespace monitor {
22 
23 
30 class Runnable {
31  public:
32 
36  explicit Runnable( );
37 
38  virtual ~Runnable( );
39 
44  virtual int execute( ) const = 0;
45 };
46 
47 
48 } } // End namespace carma::monitor
49 
50 
51 inline
53 {
54 }
55 
56 
57 inline
58 carma::monitor::Runnable::~Runnable( )
59 try {
60 } catch ( ... ) {
61  // Just stifle any exception
62 
63  return;
64 }
65 
66 
67 #endif // CARMA_MONITOR_RUNNABLE_H
Runnable()
Constructor.
Definition: Runnable.h:52
Abstract class that defines the interface for executing a method.
Definition: Runnable.h:30
virtual int execute() const =0
Execute the method.