Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Ice::Object Class Reference

The base class for servants. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::Object:

Public Member Functions

 Object () noexcept=default
 Default constructor.
 Object (const Object &)=delete
 Object (Object &&)=delete
virtual void dispatch (IncomingRequest &request, std::function< void(OutgoingResponse)> sendResponse)
 Dispatches an incoming request and returns the corresponding outgoing response.
virtual std::string ice_id (const Current &current) const
 Gets the type ID of the most-derived Slice interface supported by this object.
virtual std::vector< std::string > ice_ids (const Current &current) const
 Gets the Slice interfaces supported by this object as a list of type IDs.
virtual bool ice_isA (std::string typeId, const Current &current) const
 Tests whether this object supports a specific Slice interface.
virtual void ice_ping (const Current &current) const
 Tests whether this object can be reached.
Objectoperator= (const Object &)=delete
Objectoperator= (Object &&)=delete

Static Public Member Functions

static const char * ice_staticId () noexcept
 Gets the type ID of the associated Slice interface.

Detailed Description

The base class for servants.

Remarks
Object is a stateless polymorphic base class. Its copy constructor, move constructor, copy assignment operator and move assignment operator are all deleted to prevent accidental slicing. Derived classes can define these constructors and assignment operators to reenable copying, moving and slicing.

Definition at line 20 of file Object.h.


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