UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
module.h
Go to the documentation of this file.
1 #ifndef UGDK_SCRIPT_MODULE_H_
2 #define UGDK_SCRIPT_MODULE_H_
3 
4 #include <string>
5 
6 namespace ugdk {
7 namespace script {
8 
9 template <class loader_t>
10 class Module {
11  public:
12  Module(const std::string& name, loader_t init_func) :
13  name_(name),
14  init_func_(init_func) {}
15  const std::string& name() const { return name_; }
16  loader_t init_func() const { return init_func_; }
17  private:
18  std::string name_;
19  loader_t init_func_;
20 };
21 
22 } /* namespace script */
23 } /* namespace ugdk */
24 
25 #endif /* UGDK_SCRIPT_MODULE_H_ */
loader_t init_func() const
Definition: module.h:16
Module(const std::string &name, loader_t init_func)
Definition: module.h:12
Definition: animation.h:11
const std::string & name() const
Definition: module.h:15