summaryrefslogtreecommitdiff
path: root/src/bindings/cxx/eo_cxx/eo_init.hh
blob: a1cb3c2aaa56eb1183a40c602d75a7c39d7b038c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

///
/// @file eo_init.hh
///

#ifndef EFL_CXX_EO_INIT_HH
#define EFL_CXX_EO_INIT_HH

#include "eo_ops.hh"

namespace efl { namespace eo {

/// @addtogroup Efl_Cxx_API
/// @{

/// @brief A simple RAII implementation to initialize and terminate
/// the <em>EO Subsystem</em>.
///
struct eo_init
{
   /// @brief Default constructor.
   ///
   /// Invokes @c ::eo_init().
   ///
   eo_init() { detail::init(); }

   /// @brief Class destructor.
   ///
   /// Invokes @c ::eo_shutdown().
   ///
   ~eo_init() { detail::shutdown(); }
};

/// @}

} }

#endif // EFL_CXX_EO_INIT_HH