Remote Call Framework 3.4
InitDeinit.hpp
Go to the documentation of this file.
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2023, Delta V Software. All rights reserved.
6 // https://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 under GPL terms.
12 //
13 // Version: 3.4
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_INITDEINIT_HPP
19 #define INCLUDE_RCF_INITDEINIT_HPP
20 
22 
23 #include <RCF/Export.hpp>
24 #include <RCF/Config.hpp>
25 
26 namespace RCF {
27 
29  RCF_EXPORT std::size_t getInitRefCount();
30 
32  RCF_EXPORT bool init(RcfConfigT * = nullptr);
33 
35  RCF_EXPORT bool deinit();
36 
38  class RCF_EXPORT RcfInit
39  {
40  public:
41 
43  RcfInit(RcfConfigT * = nullptr);
44 
46  ~RcfInit();
47 
48  private:
49  bool mIsRootInstance = false;
50  };
51 
52 } // namespace RCF
53 
54 #endif // ! INCLUDE_RCF_INITDEINIT_HPP
RCF_EXPORT bool deinit()
Reference-counted deinitialization of RCF library. For actual deinitialization to take place...
Definition: AmiIoHandler.hpp:23
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:38
RCF_EXPORT bool init(RcfConfigT *=nullptr)
Reference-counted initialization of RCF library. May be called multiple times (see deinit())...