aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/oo/Register_Implement.h
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp/oo/Register_Implement.h')
-rw-r--r--meowpp/oo/Register_Implement.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/meowpp/oo/Register_Implement.h b/meowpp/oo/Register_Implement.h
index dd496fa..2e8ca32 100644
--- a/meowpp/oo/Register_Implement.h
+++ b/meowpp/oo/Register_Implement.h
@@ -2,6 +2,7 @@
#define REGISTER_IMPLEMENT_H_
#include <map>
+#include <vector>
namespace meow{
template<class T>
@@ -25,6 +26,7 @@ namespace meow{
virtual bool regImplement(ImplementInterface<T>*imp);
virtual ImplementInterface<T>* getImplement(T const& identify);
virtual ~RegisterInterface(){ }
+ std::vector<T> getIdentifys() const;
};
/*******************************************************************
@asciidoc
@@ -38,7 +40,7 @@ namespace meow{
* Let all the problem-solving classes inherit from
`class ImplementInterface<T>` , and call the constructure with giving
`identify` (type `T` ) .
- * Create an object, type `RegisterInterface<T>` , and register all your
+ * Create an class inherit from `RegisterInterface<T>` , and register all your
implement class to it by call `regImplement(pointer to the class)`.
* Select which implement class you want by call `getImplement(identify)` ,
which will return the pointer to the corresponding class.