move declaration of HttpSimpleControllerBase to HttpSimpleController.h

This commit is contained in:
an-tao 2018-05-14 17:39:01 +08:00
parent e7e61d2b18
commit e887d4f090
2 changed files with 9 additions and 6 deletions

View File

@ -22,12 +22,7 @@
namespace drogon
{
class HttpSimpleControllerBase:public virtual DrObjectBase
{
public:
virtual void asyncHandleHttpRequest(const HttpRequest& req,std::function<void (HttpResponse &)>callback)=0;
virtual ~HttpSimpleControllerBase(){}
};
class HttpAppFramework:public trantor::NonCopyable
{
public:

View File

@ -25,6 +25,14 @@ return vet;\
}
namespace drogon
{
class HttpSimpleControllerBase:public virtual DrObjectBase
{
public:
virtual void asyncHandleHttpRequest(const HttpRequest& req,std::function<void (HttpResponse &)>callback)=0;
virtual ~HttpSimpleControllerBase(){}
};
template <typename T>
class HttpSimpleController:public DrObject<T>,public HttpSimpleControllerBase
{