UGDK
src/ugdk/script/module.h
Go to the documentation of this file.
00001 
00002 #ifndef UGDK_SCRIPT_MODULE_H_
00003 #define UGDK_SCRIPT_MODULE_H_
00004 
00005 #include <string>
00006 
00007 namespace ugdk {
00008 namespace script {
00009 
00010 template <class loader_t>
00011 class Module {
00012   public:
00013     Module(const std::string& name, loader_t init_func) :
00014         name_(name),
00015         init_func_(init_func) {}
00016     const std::string& name() const { return name_; }
00017     loader_t init_func() const { return init_func_; }
00018   private:
00019     std::string     name_;
00020     loader_t        init_func_;
00021 };
00022 
00023 } /* namespace script */
00024 } /* namespace ugdk */
00025 
00026 #endif /* UGDK_SCRIPT_MODULE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines