MythTV  master
cleanupguard.h
Go to the documentation of this file.
1 #ifndef _CLEANUPGUARD_H_
2 #define _CLEANUPGUARD_H_
3 
4 #include "mythbaseexp.h"
5 
7 {
8  public:
9  typedef void (*CleanupFunc)();
10 
11  public:
12  explicit CleanupGuard(CleanupFunc cleanFunction);
13 
14  ~CleanupGuard();
15 
16  private:
17  CleanupFunc m_cleanFunction;
18 };
19 
20 #endif // _CLEANUPGUARD_H_
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
CleanupFunc m_cleanFunction
Definition: cleanupguard.h:17