All Classes Files Functions Variables Typedefs Pages
BaseProxy.hpp
Go to the documentation of this file.
1 #pragma once
2 
19 #define BASE_PROXY_USE_CONTEXT 0
20 
21 // if the service context is used, there is one service for each context
22 #if BASE_PROXY_USE_CONTEXT
23  #include "../core/ContextBase.hpp"
24 
25  namespace lumina {
26  namespace config {
27  typedef ContextBase CommonBase;
28  }
29  }
30 
31 // if the service context is not used, every service is a singleton
32 #else
33  #include "../core/SingleBase.hpp"
34 
35  namespace lumina {
36  namespace config {
37  typedef SingleBase CommonBase;
38  }
39  }
40 
41 #endif
42 #undef BASE_PROXY_USE_CONTEXT