TwiceAsNice
2019-02-18
|
This class connects a local instance of this class (bridge) with a remote instance of this class. When the bidirectional connection has been established the communication (passing values from on side to the other and vice versa) can be done. To each instance of this class a property is attached which hold the value on either side. More...
#include <BridgeIce.h>
Classes | |
class | IceInterface |
Public Member Functions | |
PropertyBridgeIceImpl (const Ice::ObjectAdapterPtr &_adapter) | |
Constructor. More... | |
PropertyBridgeIceImpl (const Ice::ObjectAdapterPtr &_adapter, const IceInterfacePtr &_interface) | |
virtual | ~PropertyBridgeIceImpl () |
Destructor. More... | |
Nice::Property * | property () |
void | setProperty (const Type &_value, Nice::I64 _setterId, const Nice::DateVar &_date) |
virtual void | connect (const Ice::ConnectionPtr &_con, const Ice::Identity &_remote, Nice::I64 _remoteId) |
Local interface to connect a local bridge to a remote bridge. More... | |
virtual void | disconnect () |
Disconnect this bridge from all remote connected bridges. More... | |
virtual void | set (Nice::CompletionState _cs, const Nice::Any &_val, Nice::I64 _setterId, const Nice::DateVar &_date) |
This function is called by the connected property whenever the value of the property has changed and signals are emitted to the bridges. More... | |
PropertyBridgeIceImpl (const Ice::ObjectAdapterPtr &_adapter) | |
Constructor. More... | |
PropertyBridgeIceImpl (const Ice::ObjectAdapterPtr &_adapter, const IceInterfacePtr &_interface) | |
virtual | ~PropertyBridgeIceImpl () |
Destructor. More... | |
Nice::Property * | property () |
void | setProperty (const Type &_value, Nice::I64 _setterId, const Nice::DateVar &_date) |
virtual void | connect (const Ice::ConnectionPtr &_con, const Ice::Identity &_remote, Nice::I64 _remoteId) |
Local interface to connect a local bridge to a remote bridge. More... | |
virtual void | disconnect () |
Disconnect this bridge from all remote connected bridges. More... | |
virtual void | set (Nice::CompletionState _cs, const Nice::Any &_val, Nice::I64 _setterId, const Nice::DateVar &_date) |
This function is called by the connected property whenever the value of the property has changed and signals are emitted to the bridges. More... | |
![]() | |
virtual const std::string & | identity () |
virtual const std::string & | type () |
virtual std::string | toString () const |
serialize to a string. More... | |
virtual const std::string & | identity () |
virtual const std::string & | type () |
virtual std::string | toString () const |
serialize to a string. More... | |
![]() | |
PropertyBridge () | |
Constructor. More... | |
virtual | ~PropertyBridge () |
Destructor. More... | |
virtual void | init (const PropertyPtr &_property) |
Initializer, called by the Property when it is applied. More... | |
PropertyBridge () | |
Constructor. More... | |
virtual | ~PropertyBridge () |
Destructor. More... | |
virtual void | init (const PropertyPtr &_property) |
Initializer, called by the Property when it is applied. More... | |
Protected Types | |
typedef IceUtil::Handle< IceInterface > | IceInterfacePtr |
typedef IceUtil::Handle< IceInterface > | IceInterfacePtr |
Protected Attributes | |
IceInterfacePtr | m_if |
RemoteBridgeMap | m_remoteBridges |
![]() | |
Ice::ObjectAdapterPtr | m_adapter |
Ice::Identity | m_identity |
![]() | |
Nice::Property * | m_property |
Private Types | |
typedef TypeIf::ProxyType | TypeIfPrx |
typedef Nice::Map< Nice::I64, TypeIfPrx > | RemoteBridgeMap |
typedef TypeIf::ProxyType | TypeIfPrx |
typedef Nice::Map< Nice::I64, TypeIfPrx > | RemoteBridgeMap |
Additional Inherited Members | |
![]() | |
static const std::string | s_type = "ICE_CONBRIDGE" |
static const std::string | s_disttype = "ICE_DISTBRIDGE" |
![]() | |
PropertyBridgeIce (const Ice::ObjectAdapterPtr &_adapter) | |
virtual | ~PropertyBridgeIce () |
PropertyBridgeIce (const Ice::ObjectAdapterPtr &_adapter) | |
virtual | ~PropertyBridgeIce () |
This class connects a local instance of this class (bridge) with a remote instance of this class. When the bidirectional connection has been established the communication (passing values from on side to the other and vice versa) can be done. To each instance of this class a property is attached which hold the value on either side.
|
protected |
|
protected |
|
private |
|
private |
|
private |
|
private |
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl | ( | const Ice::ObjectAdapterPtr & | _adapter | ) |
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl | ( | const Ice::ObjectAdapterPtr & | _adapter, |
const IceInterfacePtr & | _interface | ||
) |
|
virtual |
Destructor.
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl | ( | const Ice::ObjectAdapterPtr & | _adapter | ) |
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl | ( | const Ice::ObjectAdapterPtr & | _adapter, |
const IceInterfacePtr & | _interface | ||
) |
|
virtual |
Destructor.
|
virtual |
Local interface to connect a local bridge to a remote bridge.
_remote | an instance of PropertyBridgeIceConnectHandle, which contains parameters to establich a connection to a remote bridge. |
_remoteId | The id of the remote bridge which was passed to this side when the initial connection was established. |
Implements Nice::PropertyBridgeIce.
|
virtual |
Local interface to connect a local bridge to a remote bridge.
_remote | an instance of PropertyBridgeIceConnectHandle, which contains parameters to establich a connection to a remote bridge. |
_remoteId | The id of the remote bridge which was passed to this side when the initial connection was established. |
Implements Nice::PropertyBridgeIce.
|
virtual |
Disconnect this bridge from all remote connected bridges.
Reimplemented from Nice::PropertyBridge.
|
virtual |
Disconnect this bridge from all remote connected bridges.
Reimplemented from Nice::PropertyBridge.
|
inline |
|
inline |
|
virtual |
This function is called by the connected property whenever the value of the property has changed and signals are emitted to the bridges.
This function takes care to distribute the property changes.
Implements Nice::PropertyBridge.
Reimplemented in Basda::PropertyBridge1to1Ice< Type, TypeIf, IceType >, and Basda::PropertyBridge1to1Ice< Type, TypeIf, IceType >.
|
virtual |
This function is called by the connected property whenever the value of the property has changed and signals are emitted to the bridges.
This function takes care to distribute the property changes.
Implements Nice::PropertyBridge.
Reimplemented in Basda::PropertyBridge1to1Ice< Type, TypeIf, IceType >, and Basda::PropertyBridge1to1Ice< Type, TypeIf, IceType >.
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::setProperty | ( | const Type & | _value, |
Nice::I64 | _setterId, | ||
const Nice::DateVar & | _date | ||
) |
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::setProperty | ( | const Type & | _value, |
Nice::I64 | _setterId, | ||
const Nice::DateVar & | _date | ||
) |
|
protected |
|
protected |