Manak  2.0.0
manak_env.hpp
Go to the documentation of this file.
1 #ifndef MANAK_ENV_HPP_INCLUDED
2 #define MANAK_ENV_HPP_INCLUDED
3 
4 #include <string>
5 
6 namespace manak
7 {
8 
9 class ManakEnv
10 {
11  public:
12  static ManakEnv& GlobalEnv()
13  {
14  static ManakEnv singleton;
15  return singleton;
16  }
17 
18  const std::string& GetModuleName() const
19  {
20  return module_name;
21  }
22  std::string& GetModuleName()
23  {
24  return module_name;
25  }
26 
27  private:
28  std::string module_name;
29 };
30 
31 }
32 
33 
34 #endif // MANAK_ENV_HPP_INCLUDED
const std::string & GetModuleName() const
Definition: manak_env.hpp:18
std::string & GetModuleName()
Definition: manak_env.hpp:22
static ManakEnv & GlobalEnv()
Definition: manak_env.hpp:12
std::string module_name
Definition: manak_env.hpp:28