RCFProto
 All Classes Functions Typedefs
Globals.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2013, 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: 2.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_RCF_GLOBALS_HPP
20 #define INCLUDE_RCF_GLOBALS_HPP
21 
22 #include <string>
23 
24 #include <RCF/Export.hpp>
25 
26 namespace RCF {
27 
28  class ZlibDll;
29  class OpenSslDll;
30  class OpenSslCryptoDll;
31 
32  class RCF_EXPORT Globals
33  {
34 
35  public:
36  Globals();
37  ~Globals();
38 
39  void setZlibDllName(const std::string & dllName);
40  std::string getZlibDllName() const;
41 
42  void setOpenSslDllName(const std::string & dllName);
43  std::string getOpenSslDllName() const;
44 
45  void setOpenSslCryptoDllName(const std::string & dllName);
46  std::string getOpenSslCryptoDllName() const;
47 
48  ZlibDll & getZlibDll();
49  OpenSslDll & getOpenSslDll();
50  OpenSslCryptoDll & getOpenSslCryptoDll();
51 
52  private:
53 
54  ZlibDll * mpZlibDll;
55  OpenSslDll * mpOpenSslDll;
56  OpenSslCryptoDll * mpOpenSslCryptoDll;
57 
58  std::string mZlibDllName;
59  std::string mOpenSslDllName;
60  std::string mOpenSslCryptoDllName;
61  };
62 
63  RCF_EXPORT Globals & getGlobals();
64 
65 } // namespace RCF
66 
67 #endif // ! INCLUDE_RCF_GLOBALS_HPP