Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
apollo::cyber::ClientBase Class Referenceabstract

Base class of Client. More...

#include <client_base.h>

Inheritance diagram for apollo::cyber::ClientBase:
Inheritance graph
Collaboration diagram for apollo::cyber::ClientBase:
Collaboration graph

Public Member Functions

 ClientBase (const std::string &service_name)
 Construct a new Client Base object. More...
 
virtual ~ClientBase ()
 
virtual void Destroy ()=0
 Destroy the Client. More...
 
const std::string & ServiceName () const
 Get the service name. More...
 
virtual bool ServiceIsReady () const =0
 Ensure whether there is any Service named service_name_ More...
 

Protected Member Functions

bool WaitForServiceNanoseconds (std::chrono::nanoseconds time_out)
 

Protected Attributes

std::string service_name_
 

Detailed Description

Base class of Client.

Constructor & Destructor Documentation

◆ ClientBase()

apollo::cyber::ClientBase::ClientBase ( const std::string &  service_name)
inlineexplicit

Construct a new Client Base object.

Parameters
service_namethe service we can request

◆ ~ClientBase()

virtual apollo::cyber::ClientBase::~ClientBase ( )
inlinevirtual

Member Function Documentation

◆ Destroy()

virtual void apollo::cyber::ClientBase::Destroy ( )
pure virtual

Destroy the Client.

Implemented in apollo::cyber::Client< Request, Response >.

◆ ServiceIsReady()

virtual bool apollo::cyber::ClientBase::ServiceIsReady ( ) const
pure virtual

Ensure whether there is any Service named service_name_

Implemented in apollo::cyber::Client< Request, Response >.

◆ ServiceName()

const std::string& apollo::cyber::ClientBase::ServiceName ( ) const
inline

Get the service name.

◆ WaitForServiceNanoseconds()

bool apollo::cyber::ClientBase::WaitForServiceNanoseconds ( std::chrono::nanoseconds  time_out)
inlineprotected

Member Data Documentation

◆ service_name_

std::string apollo::cyber::ClientBase::service_name_
protected

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