OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Odb::App::Server::OdbDesignServerApp Class Reference

#include <OdbDesignServerApp.h>

Inheritance diagram for Odb::App::Server::OdbDesignServerApp:
[legend]
Collaboration diagram for Odb::App::Server::OdbDesignServerApp:
[legend]

Public Member Functions

 OdbDesignServerApp (int argc, char *argv[])
 
- Public Member Functions inherited from Odb::Lib::App::OdbServerAppBase
 ~OdbServerAppBase () override
 
CrowApp & crow_app () override
 
RequestAuthenticationBase & request_auth () override
 
void request_auth (std::unique_ptr< RequestAuthenticationBase > pRequestAuthentication) override
 
std::shared_ptr< DesignCache > design_cache () override
 
void design_cache (std::shared_ptr< DesignCache > pDesignCache) override
 
Utils::ExitCode Run () override
 
- Public Member Functions inherited from Odb::Lib::App::OdbAppBase
 OdbAppBase (int argc, char *argv[])
 
virtual ~OdbAppBase ()
 
const OdbDesignArgs & args () const override
 
DesignCache & designs () override
 
- Public Member Functions inherited from Odb::Lib::App::IOdbApp
virtual ~IOdbApp ()
 
- Public Member Functions inherited from Odb::Lib::App::IOdbServerApp
virtual ~IOdbServerApp ()
 

Protected Member Functions

void add_controllers () override
 
void RunGrpcServer (const std::string &server_address, std::shared_ptr< Odb::Lib::App::DesignCache > cache) override
 
bool preServerRun () override
 
- Protected Member Functions inherited from Odb::Lib::App::OdbServerAppBase
 OdbServerAppBase (int argc, char *argv[])
 
void set_grpc_server (std::shared_ptr< grpc::Server > server)
 
std::shared_ptr< grpc::Server > grpc_server () const
 
virtual bool postServerRun ()
 
- Protected Member Functions inherited from Odb::Lib::App::IOdbApp
 IOdbApp ()=default
 
- Protected Member Functions inherited from Odb::Lib::App::IOdbServerApp
 IOdbServerApp ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from Odb::Lib::App::OdbServerAppBase
static void HandleSignal (int signum)
 
- Static Public Attributes inherited from Odb::Lib::App::OdbAppBase
static const char * DEFAULT_DESIGNS_DIR = "designs"
 
- Protected Attributes inherited from Odb::Lib::App::OdbServerAppBase
RouteController::Vector m_vecControllers
 
std::atomic< bool > m_shutdownFlag
 
std::shared_ptr< grpc::Server > m_grpcServer
 
std::unique_ptr< std::thread > m_grpcThread
 
- Protected Attributes inherited from Odb::Lib::App::OdbAppBase
DesignCache m_designCache
 
const OdbDesignArgs m_commandLineArgs
 

Detailed Description

Definition at line 11 of file OdbDesignServerApp.h.

Constructor & Destructor Documentation

◆ OdbDesignServerApp()

Odb::App::Server::OdbDesignServerApp::OdbDesignServerApp ( int  argc,
char *  argv[] 
)

Definition at line 34 of file OdbDesignServerApp.cpp.

Member Function Documentation

◆ add_controllers()

void Odb::App::Server::OdbDesignServerApp::add_controllers ( )
overrideprotectedvirtual

Implements Odb::Lib::App::OdbServerAppBase.

Definition at line 39 of file OdbDesignServerApp.cpp.

◆ preServerRun()

bool Odb::App::Server::OdbDesignServerApp::preServerRun ( )
overrideprotectedvirtual

Reimplemented from Odb::Lib::App::OdbServerAppBase.

Definition at line 209 of file OdbDesignServerApp.cpp.

Here is the call graph for this function:

◆ RunGrpcServer()

void Odb::App::Server::OdbDesignServerApp::RunGrpcServer ( const std::string &  server_address,
std::shared_ptr< Odb::Lib::App::DesignCache >  cache 
)
overrideprotectedvirtual

Reimplemented from Odb::Lib::App::OdbServerAppBase.

Definition at line 48 of file OdbDesignServerApp.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: