Ice 3.7 C++98 API Reference
|
Go to the documentation of this file.
5 #ifndef ICE_INITIALIZE_H
6 #define ICE_INITIALIZE_H
21 #ifdef ICE_CPP11_MAPPING
22 # define ICE_CONFIG_FILE_STRING const std::string&
24 # define ICE_CONFIG_FILE_STRING const char*
250 #ifdef ICE_CPP11_MAPPING
295 #ifdef ICE_CPP11_MAPPING
297 #if defined(__clang__)
298 # pragma clang diagnostic push
299 # pragma clang diagnostic ignored "-Wdocumentation" // param/return is not recognized for std::function data members
305 std::function<void()> threadStart;
310 std::function<void()> threadStop;
326 std::function<void(std::function<
void()> call,
const std::shared_ptr<Ice::Connection>& con)>
dispatcher;
348 #if defined(__clang__)
349 # pragma clang diagnostic pop
430 return initialize(argc,
const_cast<const char**
>(argv), initData, version);
469 return initialize(argc,
const_cast<const char**
>(argv), configFile, version);
489 const InitializationData& initData = InitializationData(),
510 return initialize(argc,
const_cast<const wchar_t**
>(argv), initData, version);
549 return initialize(argc,
const_cast<const wchar_t**
>(argv), configFile, version);
651 #ifdef ICE_CPP11_MAPPING
660 _communicator(std::move(
initialize(std::forward<T>(args)...)))
691 explicit operator bool()
const;
693 #else // C++98 mapping
891 operator bool()
const;
944 namespace IceInternal
Represents an invocation on a proxy configured for batch-oneway or batch-datagram.
Definition: BatchRequestInterceptor.h:19
A helper class that uses Resource Acquisition Is Initialization (RAII) to initialize and hold a commu...
Definition: Initialize.h:643
virtual void stop()=0
Called from an Ice thread that is about to stop.
virtual void destroy()
Not used.
CommunicatorHolder(int &argc, char *argv[], const char *configFile, int version=30710)
Initializes a new communicator.
CommunicatorHolder & operator=(const CommunicatorPtr &communicator)
Adopts the given communicator.
std::string identityToString(const Identity &id, ToStringMode mode=Unicode)
Converts an Identity structure into a string using the specified mode.
@ Unicode
Characters with ordinal values greater than 127 are kept as-is in the resulting string.
Definition: Communicator.h:627
virtual void initialize()
Not used.
const CommunicatorPtr & communicator() const
Obtains the communicator instance.
A communicator plug-in.
Definition: Plugin.h:198
PropertiesPtr createProperties()
Creates a new empty property set.
ThreadNotificationPtr threadHook
The thread hook for the communicator.
Definition: Initialize.h:356
const CommunicatorPtr & operator->() const
Obtains the communicator instance.
#define ICE_ENUM(CLASS, ENUMERATOR)
Definition: Config.h:378
virtual void start()=0
Called from the new Ice thread at startup.
Ice::Plugin *(* PluginFactory)(const ::Ice::CommunicatorPtr &communicator, const std::string &name, const ::Ice::StringSeq &args)
A plug-in factory function is responsible for creating an Ice plug-in.
Definition: Initialize.h:624
::IceInternal::Handle< Communicator > CommunicatorPtr
Definition: Communicator.h:604
ValueFactoryManagerPtr valueFactoryManager
The value factory manager.
Definition: Initialize.h:390
void registerPluginFactory(const std::string &name, PluginFactory factory, bool loadOnInit)
Manually registers a plug-in factory function.
PropertiesPtr properties
The properties for the communicator.
Definition: Initialize.h:283
Base class for a thread notification hook.
Definition: Initialize.h:225
CommunicatorHolder(const CommunicatorPtr &communicator)
Adopts the given communicator.
#define ICE_API
Definition: Config.h:197
::IceInternal::Handle< CommunicatorObserver > CommunicatorObserverPtr
Definition: Instrumentation.h:583
::std::vector< ::std::string > StringSeq
A sequence of strings.
Definition: BuiltinSequences.h:153
#define ICE_CONFIG_FILE_STRING
Definition: Initialize.h:24
CommunicatorPtr initialize(int &argc, const char *argv[], const InitializationData &initData=InitializationData(), int version=30710)
Initializes a new communicator.
#define ICE_INT_VERSION
Definition: Config.h:272
Identity stringToIdentity(const std::string &str)
Converts a stringified identity into an Identity.
::IceInternal::Handle< Properties > PropertiesPtr
Definition: Properties.h:252
ThreadHookPlugin(const CommunicatorPtr &communicator, const ThreadNotificationPtr &hook)
Installs the thread hooks.
CommunicatorPtr release()
Obtains the communicator instance and clears the reference held by the holder.
void stringSeqToArgs(const StringSeq &seq, int &argc, const char *argv[])
Updates the argument vector to match the contents of the string sequence.
CommunicatorHolder()
The holder's initial state is empty.
CommunicatorHolder(StringSeq &seq, const char *configFile, int version=30710)
Initializes a new communicator.
void setProcessLogger(const LoggerPtr &logger)
Sets the per-process logger.
CompactIdResolverPtr compactIdResolver
Applications that make use of compact type IDs to conserve space when marshaling class instances,...
Definition: Initialize.h:379
CommunicatorHolder(const InitializationData &initData, int version=30710)
Initializes a new communicator.
Instrumentation::CommunicatorObserverPtr observer
The communicator observer used by the Ice run-time.
Definition: Initialize.h:293
IceUtil::Handle< ThreadNotification > ThreadNotificationPtr
Definition: Initialize.h:239
StringSeq argsToStringSeq(int argc, const char *const argv[])
Converts an argument vector into a string sequence.
Definition: BuiltinSequences.h:113
BatchRequestInterceptorPtr batchRequestInterceptor
The batch request interceptor.
Definition: Initialize.h:384
LoggerPtr getProcessLogger()
Obtains the per-process logger.
A special plug-in that installs a thread hook during a communicator's initialization.
Definition: Initialize.h:247
DispatcherPtr dispatcher
You can control which thread receives operation invocations and AMI callbacks by supplying a dispatch...
Definition: Initialize.h:370
ToStringMode
The output mode for xxxToString method such as identityToString and proxyToString.
Definition: Communicator.h:621
CommunicatorHolder(int &argc, const char *argv[], const InitializationData &initData=InitializationData(), int version=30710)
Initializes a new communicator.
::IceInternal::Handle< ValueFactoryManager > ValueFactoryManagerPtr
Definition: ValueFactory.h:173
CommunicatorHolder(int &argc, const char *argv[], const char *configFile, int version=30710)
Initializes a new communicator.
CommunicatorHolder(int &argc, char *argv[], const InitializationData &initData=InitializationData(), int version=30710)
Initializes a new communicator.
Encapsulates data to initialize a communicator.
Definition: Initialize.h:279
The identity of an Ice object.
Definition: Identity.h:144
LoggerPtr logger
The logger for the communicator.
Definition: Initialize.h:288
CommunicatorHolder(const char *configFile, int version=30710)
Initializes a new communicator.
CommunicatorHolder(StringSeq &seq, const InitializationData &initData=InitializationData(), int version=30710)
Initializes a new communicator.
::IceInternal::Handle< Logger > LoggerPtr
Definition: Logger.h:141