NAP
Public Member Functions | Protected Member Functions | List of all members
UDPService Class Reference

#include <udpservice.h>

Public Member Functions

 UDPService (ServiceConfiguration *configuration)
 
- Public Member Functions inherited from Service
UNPREFIXED_MODULE_NAME_INPUTCASE Service (ServiceConfiguration *configuration)
 
virtual void getDependentServices (std::vector< rtti::TypeInfo > &dependencies) override
 
 Service (ServiceConfiguration *configuration)
 
virtual ~Service ()
 
CoregetCore ()
 
const CoregetCore () const
 
std::string getTypeName () const
 
const ModulegetModule () const
 
 Service (Service &)=delete
 
Serviceoperator= (const Service &)=delete
 
 Service (Service &&)=delete
 
Serviceoperator= (Service &&)=delete
 

Protected Member Functions

virtual void registerObjectCreators (rtti::Factory &factory) override
 
virtual bool init (utility::ErrorState &error) override
 
virtual void shutdown () override
 
virtual void update (double deltaTime) override
 
- Protected Member Functions inherited from Service
virtual void getDependentServices (std::vector< rtti::TypeInfo > &dependencies)
 
virtual void created ()
 
virtual void preUpdate (double deltaTime)
 
virtual void postUpdate (double deltaTime)
 
virtual void preShutdown ()
 
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
 

Description

The UDPService is responsible for processing any UDPThreads that have registered themselves to receive an update call by the service. The Update Method of the UDPThread is set to "Main Thread" in that case

Inheritance diagram for UDPService:
[legend]
Collaboration diagram for UDPService:
[legend]

Constructor & Destructor Documentation

◆ UDPService()

UDPService ( ServiceConfiguration configuration)

Default constructor

Member Function Documentation

◆ init()

virtual bool init ( utility::ErrorState error)
overrideprotectedvirtual

initialization

Parameters
errorcontains error information
Returns
true on succes

Reimplemented from Service.

◆ registerObjectCreators()

virtual void registerObjectCreators ( rtti::Factory factory)
overrideprotectedvirtual

Registers all objects that need a specific way of construction

Parameters
factorythe factory to register the object creators with

Reimplemented from Service.

◆ shutdown()

virtual void shutdown ( )
overrideprotectedvirtual

shuts down the service

Reimplemented from Service.

◆ update()

virtual void update ( double  deltaTime)
overrideprotectedvirtual

update call wil call process on any registered UDPThreads

Parameters
deltaTimetime since last udpate

Reimplemented from Service.