TwiceAsNice  2019-02-18
Classes | Public Member Functions | Protected Types | Protected Attributes | Private Types | List of all members
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType > Class Template Reference

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>

Inheritance diagram for Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >:
Inheritance graph
Collaboration diagram for Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >:
Collaboration graph

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::Propertyproperty ()
 
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::Propertyproperty ()
 
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...
 
- Public Member Functions inherited from Nice::PropertyBridgeIce
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...
 
- Public Member Functions inherited from Nice::PropertyBridge
 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< IceInterfaceIceInterfacePtr
 
typedef IceUtil::Handle< IceInterfaceIceInterfacePtr
 

Protected Attributes

IceInterfacePtr m_if
 
RemoteBridgeMap m_remoteBridges
 
- Protected Attributes inherited from Nice::PropertyBridgeIce
Ice::ObjectAdapterPtr m_adapter
 
Ice::Identity m_identity
 
- Protected Attributes inherited from Nice::PropertyBridge
Nice::Propertym_property
 

Private Types

typedef TypeIf::ProxyType TypeIfPrx
 
typedef Nice::Map< Nice::I64, TypeIfPrxRemoteBridgeMap
 
typedef TypeIf::ProxyType TypeIfPrx
 
typedef Nice::Map< Nice::I64, TypeIfPrxRemoteBridgeMap
 

Additional Inherited Members

- Static Public Attributes inherited from Nice::PropertyBridgeIce
static const std::string s_type = "ICE_CONBRIDGE"
 
static const std::string s_disttype = "ICE_DISTBRIDGE"
 
- Protected Member Functions inherited from Nice::PropertyBridgeIce
 PropertyBridgeIce (const Ice::ObjectAdapterPtr &_adapter)
 
virtual ~PropertyBridgeIce ()
 
 PropertyBridgeIce (const Ice::ObjectAdapterPtr &_adapter)
 
virtual ~PropertyBridgeIce ()
 

Detailed Description

template<typename Type, typename TypeIf, typename IceType = Type>
class Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >

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.

Author
JB
Version
Date
2012-08-10 11:04:58 AM

Member Typedef Documentation

◆ IceInterfacePtr [1/2]

template<typename Type , typename TypeIf , typename IceType = Type>
typedef IceUtil::Handle<IceInterface> Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::IceInterfacePtr
protected

◆ IceInterfacePtr [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
typedef IceUtil::Handle<IceInterface> Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::IceInterfacePtr
protected

◆ RemoteBridgeMap [1/2]

template<typename Type , typename TypeIf , typename IceType = Type>
typedef Nice::Map<Nice::I64, TypeIfPrx> Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::RemoteBridgeMap
private

◆ RemoteBridgeMap [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
typedef Nice::Map<Nice::I64, TypeIfPrx> Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::RemoteBridgeMap
private

◆ TypeIfPrx [1/2]

template<typename Type , typename TypeIf , typename IceType = Type>
typedef TypeIf::ProxyType Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::TypeIfPrx
private

◆ TypeIfPrx [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
typedef TypeIf::ProxyType Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::TypeIfPrx
private

Constructor & Destructor Documentation

◆ PropertyBridgeIceImpl() [1/4]

template<typename Type , typename TypeIf , typename IceType >
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl ( const Ice::ObjectAdapterPtr &  _adapter)

Constructor.

Parameters
_propertyProperty to which this bridge is connected to. this is a local Property. At the remote bridge also a property is connected. Both are synchronized over the bright mechanism.
_adapterThe Ice adapter to connect this bridge to.

◆ PropertyBridgeIceImpl() [2/4]

template<typename Type , typename TypeIf , typename IceType >
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl ( const Ice::ObjectAdapterPtr &  _adapter,
const IceInterfacePtr _interface 
)

◆ ~PropertyBridgeIceImpl() [1/2]

template<typename Type , typename TypeIf , typename IceType >
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::~PropertyBridgeIceImpl ( )
virtual

Destructor.

◆ PropertyBridgeIceImpl() [3/4]

template<typename Type , typename TypeIf , typename IceType = Type>
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl ( const Ice::ObjectAdapterPtr &  _adapter)

Constructor.

Parameters
_propertyProperty to which this bridge is connected to. this is a local Property. At the remote bridge also a property is connected. Both are synchronized over the bright mechanism.
_adapterThe Ice adapter to connect this bridge to.

◆ PropertyBridgeIceImpl() [4/4]

template<typename Type , typename TypeIf , typename IceType = Type>
Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::PropertyBridgeIceImpl ( const Ice::ObjectAdapterPtr &  _adapter,
const IceInterfacePtr _interface 
)

◆ ~PropertyBridgeIceImpl() [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
virtual Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::~PropertyBridgeIceImpl ( )
virtual

Destructor.

Member Function Documentation

◆ connect() [1/2]

template<typename Type , typename TypeIf , typename IceType >
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::connect ( const Ice::ConnectionPtr &  _con,
const Ice::Identity &  _remote,
Nice::I64  _remoteId 
)
virtual

Local interface to connect a local bridge to a remote bridge.

Parameters
_remotean instance of PropertyBridgeIceConnectHandle, which contains parameters to establich a connection to a remote bridge.
_remoteIdThe id of the remote bridge which was passed to this side when the initial connection was established.
Returns

Implements Nice::PropertyBridgeIce.

◆ connect() [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
virtual void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::connect ( const Ice::ConnectionPtr &  _con,
const Ice::Identity &  _remote,
Nice::I64  _remoteId 
)
virtual

Local interface to connect a local bridge to a remote bridge.

Parameters
_remotean instance of PropertyBridgeIceConnectHandle, which contains parameters to establich a connection to a remote bridge.
_remoteIdThe id of the remote bridge which was passed to this side when the initial connection was established.
Returns

Implements Nice::PropertyBridgeIce.

◆ disconnect() [1/2]

template<typename Type , typename TypeIf , typename IceType >
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::disconnect ( )
virtual


Disconnect this bridge from all remote connected bridges.

Reimplemented from Nice::PropertyBridge.

◆ disconnect() [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
virtual void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::disconnect ( )
virtual


Disconnect this bridge from all remote connected bridges.

Reimplemented from Nice::PropertyBridge.

◆ property() [1/2]

template<typename Type , typename TypeIf , typename IceType = Type>
Nice::Property* Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::property ( )
inline

◆ property() [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
Nice::Property* Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::property ( )
inline

◆ set() [1/2]

template<typename Type , typename TypeIf , typename IceType >
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::set ( Nice::CompletionState  _cs,
const Nice::Any _val,
Nice::I64  _setterId,
const Nice::DateVar _date 
)
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 >.

◆ set() [2/2]

template<typename Type , typename TypeIf , typename IceType = Type>
virtual void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::set ( Nice::CompletionState  _cs,
const Nice::Any _val,
Nice::I64  _setterId,
const Nice::DateVar _date 
)
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 >.

◆ setProperty() [1/2]

template<typename Type , typename TypeIf , typename IceType = Type>
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::setProperty ( const Type _value,
Nice::I64  _setterId,
const Nice::DateVar _date 
)

◆ setProperty() [2/2]

template<typename Type , typename TypeIf , typename IceType >
void Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::setProperty ( const Type _value,
Nice::I64  _setterId,
const Nice::DateVar _date 
)

Member Data Documentation

◆ m_if

template<typename Type , typename TypeIf , typename IceType = Type>
IceInterfacePtr Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::m_if
protected

◆ m_remoteBridges

template<typename Type , typename TypeIf , typename IceType = Type>
RemoteBridgeMap Nice::PropertyBridgeIceImpl< Type, TypeIf, IceType >::m_remoteBridges
protected

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