5#ifndef GLACIER2_APPLICATION_H
6#define GLACIER2_APPLICATION_H
27#ifndef ICE_CPP11_MAPPING
68#ifdef ICE_CPP11_MAPPING
152 static Ice::ObjectPrxPtr
addWithUUID(
const Ice::ObjectPtr& servant);
175 int run(
int,
char*[])
182 static Ice::ObjectAdapterPtr _adapter;
183 static Glacier2::RouterPrxPtr _router;
184 static Glacier2::SessionPrxPtr _session;
185 static std::string _category;
#define GLACIER2_API
Definition PermissionsVerifierF.h:50
static std::string categoryForClient()
Returns the category to be used in the identities of all of the client's callback objects.
Application & operator=(const Application &)=delete
static Glacier2::RouterPrxPtr router()
Returns the Glacier2 router proxy.
virtual Glacier2::SessionPrxPtr createSession()=0
Creates a new Glacier2 session.
static Ice::Identity createCallbackIdentity(const std::string &)
Create a new Ice identity for callback objects with the given identity name field.
static Ice::ObjectPrxPtr addWithUUID(const Ice::ObjectPtr &servant)
Adds a servant to the callback object adapter's Active Servant Map with a UUID.
Application(Ice::SignalPolicy=Ice::SignalPolicy::HandleSignals)
Initializes an instance that calls Ice::Communicator::shutdown if a signal is received.
static Glacier2::SessionPrxPtr session()
Returns the Glacier2 session proxy.
virtual void sessionDestroyed()
Called when the session refresh thread detects that the session has been destroyed.
static void restart()
Called to restart the application's Glacier2 session.
virtual int runWithSession(int argc, char *argv[])=0
Called once the communicator has been initialized and the Glacier2 session has been established.
static Ice::ObjectAdapterPtr objectAdapter()
Creates an object adapter for callback objects.
Application(const Application &)=delete
virtual int doMain(int argc, char *argv[], const Ice::InitializationData &initData, int version)
Helper function that implements the application logic.
This exception is raised if the session should be restarted.
Definition Application.h:23
virtual std::string ice_id() const
Returns the type ID of this exception.
Helper template for the implementation of Ice::Exception.
Definition Exception.h:128
std::unique_ptr< RestartSessionException > ice_clone() const
Definition Exception.h:133
Singleton helper class that simplifies Ice initialization, finalization and signal handling.
Definition Application.h:40
Definition PermissionsVerifier.h:66
::std::vector<::std::string > StringSeq
A sequence of strings.
Definition BuiltinSequences.h:96
SignalPolicy
Determines how the Application class handles signals.
Definition Application.h:27
The identity of an Ice object.
Definition Identity.h:67
Encapsulates data to initialize a communicator.
Definition Initialize.h:279