OdbDesignLib
OdbDesign ODB++ Parsing Library
IOdbServerApp.h
1 #pragma once
2 
3 #include "IOdbApp.h"
4 #include "../odbdesign_export.h"
5 #include "RequestAuthenticationBase.h"
6 #include <memory>
7 
8 namespace Odb::Lib::App
9 {
10  class ODBDESIGN_EXPORT IOdbServerApp : public virtual IOdbApp
11  {
12  public:
13  virtual ~IOdbServerApp() {}
14 
15  virtual CrowApp& crow_app() = 0;
16  virtual RequestAuthenticationBase& request_auth() = 0;
17  virtual void request_auth(std::unique_ptr<RequestAuthenticationBase> requestAuthentication) = 0;
18 
19  protected:
20  IOdbServerApp() = default;
21 
22  };
23 }