no message
parent
bcf8e6d63d
commit
5aedbe969a
|
@ -31,8 +31,7 @@
|
|||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/general/src/pattern/factory.hpp" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/general/src/pattern/factory.hpp" beforeDir="false" afterPath="$PROJECT_DIR$/general/src/pattern/factory.hpp" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
|
||||
#ifndef GENERAL_FACTORY_HPP
|
||||
#define GENERAL_FACTORY_HPP
|
||||
|
||||
#include <string>
|
||||
using namespace std;
|
||||
template<typename T>
|
||||
class Factory{
|
||||
public:
|
||||
virtual T* GetProduct(){
|
||||
virtual T* GetProduct(std::string type){
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue