Poco::RemotingNG

class RemoteObject

Library: RemotingNG
Package: ORB
Header: Poco/RemotingNG/RemoteObject.h

Description

A RemoteObject forwards method calls to the local service object.

For every service object, the RemotingNG code generator generates a RemoteObject that is a subclass of the service object's interface class.

Inheritance

Direct Base Classes: Identifiable

All Base Classes: Poco::RefCountedObject, Identifiable

Member Summary

Member Functions: mutex, remoting__hasEvents, remoting__registerEvents, remoting__unregisterEvents

Inherited Functions: duplicate, referenceCount, release, remoting__getURI, remoting__objectId, remoting__setURI, remoting__typeId

Types

Ptr

typedef Poco::AutoPtr < RemoteObject > Ptr;

Constructors

RemoteObject

RemoteObject(
    const Poco::RemotingNG::Identifiable::ObjectId & oid
);

Creates a RemoteObject.

Destructor

~RemoteObject virtual

virtual ~RemoteObject();

Destroys the RemoteObject.

Member Functions

remoting__hasEvents virtual inline

virtual bool remoting__hasEvents() const;

Returns true if the service object has events, false otherwise. Must be overridden by subclasses. The default implementation always returns false.

remoting__registerEvents virtual

virtual void remoting__registerEvents(
    EventListener & listener
);

Register events at the given EventListener and store a pointer to the EventListener object (_pEventListener).

remoting__unregisterEvents virtual

virtual void remoting__unregisterEvents(
    EventListener & listener
);

Unregister events.

mutex protected inline

Poco::FastMutex & mutex() const;

Variables

_pEventListener protected

EventListener * _pEventListener;