iCub-main
Public Member Functions | List of all members
RpcServerImpl Class Reference

#include <RpcServerImpl.h>

+ Inheritance diagram for RpcServerImpl:

Public Member Functions

 RpcServerImpl ()
 
virtual int32_t get_answer ()
 Get answer from server. More...
 
virtual bool set_answer (const int32_t rightAnswer)
 
virtual int32_t add_int (const int32_t x)
 
virtual bool start ()
 Start service. More...
 
virtual bool stop ()
 Stop service. More...
 
virtual bool is_running ()
 Check is service is running. More...
 
- Public Member Functions inherited from IRpcServer
 IRpcServer ()
 
virtual bool set_answer (const std::int32_t rightAnswer)
 Set value for future answers. More...
 
virtual std::int32_t add_int (const std::int32_t x)
 Add one integer to future answers. More...
 
virtual std::vector< std::string > help (const std::string &functionName="--all")
 
bool read (yarp::os::ConnectionReader &connection) override
 

Detailed Description

Definition at line 4 of file RpcServerImpl.h.

Constructor & Destructor Documentation

◆ RpcServerImpl()

RpcServerImpl::RpcServerImpl ( )

Definition at line 6 of file RpcServerImpl.cpp.

Member Function Documentation

◆ add_int()

int32_t RpcServerImpl::add_int ( const int32_t  x)
virtual

Definition at line 29 of file RpcServerImpl.cpp.

◆ get_answer()

int32_t RpcServerImpl::get_answer ( )
virtual

Get answer from server.

Returns
the answer

Reimplemented from IRpcServer.

Definition at line 12 of file RpcServerImpl.cpp.

◆ is_running()

bool RpcServerImpl::is_running ( )
virtual

Check is service is running.

Returns
true/false if service is/is not running

Reimplemented from IRpcServer.

Definition at line 49 of file RpcServerImpl.cpp.

◆ set_answer()

bool RpcServerImpl::set_answer ( const int32_t  rightAnswer)
virtual

Definition at line 18 of file RpcServerImpl.cpp.

◆ start()

bool RpcServerImpl::start ( )
virtual

Start service.

Returns
true if service started correctly

Reimplemented from IRpcServer.

Definition at line 37 of file RpcServerImpl.cpp.

◆ stop()

bool RpcServerImpl::stop ( )
virtual

Stop service.

Returns
true if service stopped correctly

Reimplemented from IRpcServer.

Definition at line 43 of file RpcServerImpl.cpp.


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