Remote Call Framework 3.1
InitDeinit.hpp
Go to the documentation of this file.
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2019, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 3.1
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_INITDEINIT_HPP
20 #define INCLUDE_RCF_INITDEINIT_HPP
21 
23 
24 #include <RCF/Export.hpp>
25 #include <RCF/Config.hpp>
26 
27 namespace RCF {
28 
30  RCF_EXPORT std::size_t getInitRefCount();
31 
33  RCF_EXPORT bool init(RcfConfigT * = nullptr);
34 
36  RCF_EXPORT bool deinit();
37 
39  class RCF_EXPORT RcfInit
40  {
41  public:
42 
44  RcfInit(RcfConfigT * = nullptr);
45 
47  ~RcfInit();
48 
49  private:
50  bool mIsRootInstance = false;
51  };
52 
53 } // namespace RCF
54 
55 #endif // ! INCLUDE_RCF_INITDEINIT_HPP
RCF_EXPORT bool deinit()
Reference-counted deinitialization of RCF library. For actual deinitialization to take place...
Definition: AmiIoHandler.hpp:24
RCF_EXPORT std::size_t getInitRefCount()
Returns the number of outstanding RCF::init() calls.
RCF initialization sentry class. Internally reference counted. Constructor calls RCF::init(). Destructor calls RCF::deinit().
Definition: InitDeinit.hpp:39
RCF_EXPORT bool init(RcfConfigT *=nullptr)
Reference-counted initialization of RCF library. May be called multiple times (see deinit())...