Implemented the loading of the list of types into the database catalogue.
This commit is contained in:
parent
43c3835350
commit
5a35fa6a30
3 changed files with 48 additions and 1 deletions
|
|
@ -1,6 +1,15 @@
|
|||
#ifndef SCOPEGUARD_H
|
||||
#define SCOPEGUARD_H
|
||||
|
||||
/** \brief Template class for executing code at scope exit.
|
||||
*
|
||||
* By default the object will be an active mode and execute the function
|
||||
* passed to the constructor when the object is destructed. You can however
|
||||
* cancel this action by calling dismiss().
|
||||
*
|
||||
* There is a clever macro that allows you to write something like
|
||||
* SCOPE_EXIT { foo(); };
|
||||
*/
|
||||
template<class Fun>
|
||||
class ScopeGuard {
|
||||
Fun f_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue