#include <apiwebsocketservice.h>
Public Member Functions | |
| APIWebSocketService (ServiceConfiguration *configuration) | |
| virtual bool | init (nap::utility::ErrorState &errorState) override |
| APIService & | getAPIService () |
| const APIService & | getAPIService () const |
| WebSocketService & | getWebSocketService () |
| const WebSocketService & | getWebSocketService () const |
Public Member Functions inherited from Service | |
| UNPREFIXED_MODULE_NAME_INPUTCASE | Service (ServiceConfiguration *configuration) |
| virtual void | update (double deltaTime) override |
| virtual void | shutdown () override |
| Service (ServiceConfiguration *configuration) | |
| virtual | ~Service () |
| Core & | getCore () |
| const Core & | getCore () const |
| std::string | getTypeName () const |
| const Module & | getModule () const |
| Service (Service &)=delete | |
| Service & | operator= (const Service &)=delete |
| Service (Service &&)=delete | |
| Service & | operator= (Service &&)=delete |
Protected Member Functions | |
| virtual void | registerObjectCreators (rtti::Factory &factory) override |
| virtual void | getDependentServices (std::vector< rtti::TypeInfo > &dependencies) override |
| virtual void | created () override |
Protected Member Functions inherited from Service | |
| virtual void | preUpdate (double deltaTime) |
| virtual void | update (double deltaTime) |
| virtual void | postUpdate (double deltaTime) |
| virtual void | preShutdown () |
| virtual void | shutdown () |
| virtual void | preResourcesLoaded () |
| virtual void | postResourcesLoaded () |
| template<typename SERVICE_CONFIG > | |
| SERVICE_CONFIG * | getConfiguration () |
| template<typename SERVICE_CONFIG > | |
| const SERVICE_CONFIG * | getConfiguration () const |
| std::string | getIniFilePath () const |
| std::string | getIniFilePath (const std::string &appendix) const |
Main interface for processing api web socket events in NAP. The service depends on both the nap::APIService and nap::WebSocketService.
| APIWebSocketService | ( | ServiceConfiguration * | configuration | ) |
|
overrideprotectedvirtual |
| APIService& getAPIService | ( | ) |
| const APIService& getAPIService | ( | ) | const |
|
overrideprotectedvirtual |
This service depends on the api and web socket service
Reimplemented from Service.
| WebSocketService& getWebSocketService | ( | ) |
| const WebSocketService& getWebSocketService | ( | ) | const |
|
overridevirtual |
Initializes the service
| errorState | contains the error message on failure |
Reimplemented from Service.
|
overrideprotectedvirtual |
Registers all objects that need a specific way of construction.
| factory | the factory to register the object creators with. |
Reimplemented from Service.