Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
NativePropertiesAdmin.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4
5#ifndef ICE_PROPERTIES_ADMIN_H
6#define ICE_PROPERTIES_ADMIN_H
7
9
10namespace Ice
11{
12
13#ifndef ICE_CPP11_MAPPING
35{
36public:
37
39
45 virtual void updated(const PropertyDict& d) = 0;
46};
48#endif
49
55#ifndef ICE_CPP11_MAPPING
56 : public virtual IceUtil::Shared
57#endif
58{
59public:
60
62
63#ifdef ICE_CPP11_MAPPING
68 virtual std::function<void()> addUpdateCallback(std::function<void(const PropertyDict&)> cb) = 0;
69#else
80#endif
81};
82ICE_DEFINE_PTR(NativePropertiesAdminPtr, NativePropertiesAdmin);
83
84}
85
86#endif
#define ICE_DEFINE_PTR(TPtr, T)
Definition Config.h:377
#define ICE_API
Definition Config.h:197
Definition Handle.h:143
Definition Shared.h:78
Base class for local Slice classes and interfaces.
Definition LocalObject.h:25
Base class for the Properties admin facet.
Definition NativePropertiesAdmin.h:58
virtual void addUpdateCallback(const PropertiesAdminUpdateCallbackPtr &cb)=0
Register an update callback that will be invoked when property updates occur.
virtual void removeUpdateCallback(const PropertiesAdminUpdateCallbackPtr &cb)=0
Remove an update callback.
An application can be notified when its configuration properties are modified via the Properties admi...
Definition NativePropertiesAdmin.h:35
virtual void updated(const PropertyDict &d)=0
Called when the communicator's properties have been updated.
Definition BuiltinSequences.h:113
::std::map< ::std::string, ::std::string > PropertyDict
A simple collection of properties, represented as a dictionary of key/value pairs.
Definition PropertiesAdmin.h:420
IceUtil::Handle< PropertiesAdminUpdateCallback > PropertiesAdminUpdateCallbackPtr
Definition NativePropertiesAdmin.h:47