Implemented the loading of the list of types into the database catalogue.

This commit is contained in:
Eelke Klein 2017-02-01 20:00:25 +01:00
parent 43c3835350
commit 5a35fa6a30
3 changed files with 48 additions and 1 deletions

View file

@ -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_;