neuray API Programmer's Manual

mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I> Template Class Reference

[Bridge server]

template< Uint32 i_id1, Uint16 i_id2, Uint16 i_id3, Uint8 i_id4, Uint8 i_id5, Uint8 i_id6, Uint8 i_id7, Uint8 i_id8, Uint8 i_id9, Uint8 i_id10, Uint8 i_id11, class I = IServer_job>

class mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>

Description

This mixin class provides a default implementation for some of the methods needed by mi::bridge::IServer_job. It is recommended to derive from this class rather than from mi::bridge::IServer_job directly.

Public Typedefs

typedef base::Uuid_t< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11> IID
Declares the interface ID.
typedef Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I> Self
Own type.

Public Member Functions

virtual void cancel()
Does nothing in the default implementation.
virtual base::​Uuid get_class_id() const
Returns the class ID corresponding to the template parameters of this mixin class.
virtual const base::​IInterfaceget_interface( const base::​Uuid& interface_id) const
Acquires a const interface. More...
virtual base::​IInterfaceget_interface( const base::​Uuid& interface_id)
Acquires a mutable interface. More...
virtual void serialize( neuraylib::​ISerializer* serializer) const
Empty body. This method from the base class is not needed for client jobs.

Static Public Member Functions

static bool  compare_iid( const base::​Uuid& iid)
Compares the interface ID iid against the interface ID of this interface and its ancestors. More...

Typedefs

typedef base::Uuid_t< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11> mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::IID

Declares the interface ID.

typedef Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I> mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::Self

Own type.

Member Functions

virtual void mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::cancel() [inline, virtual]

Does nothing in the default implementation.

static bool mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::compare_iid( const base::​Uuid& iid) [inline, static]

Compares the interface ID iid against the interface ID of this interface and its ancestors.

Returns

true if iid == IID() or is equal to one of the interface IDs of its ancestors, and false otherwise.

virtual base::​Uuid mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::get_class_id() const [inline, virtual]

Returns the class ID corresponding to the template parameters of this mixin class.

virtual const base::​IInterface* mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::get_interface( const base::​Uuid& interface_id) const [inline, virtual]

Acquires a const interface. If this interface is derived from or is the interface with the passed interface_id, then return a non-NULL const mi::base::IInterface* that can be casted via static_cast to an interface pointer of the interface type corresponding to the passed interface_id. Otherwise return NULL.

In the case of a non-NULL return value, the caller receives ownership of the new interface pointer, whose reference count has been retained once. The caller must release the returned interface pointer at the end to prevent a memory leak.

virtual base::​IInterface* mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::get_interface( const base::​Uuid& interface_id) [inline, virtual]

Acquires a mutable interface. If this interface is derived from or is the interface with the passed interface_id, then return a non-NULL mi::base::IInterface* that can be casted via static_cast to an interface pointer of the interface type corresponding to the passed interface_id. Otherwise return NULL.

In the case of a non-NULL return value, the caller receives ownership of the new interface pointer, whose reference count has been retained once. The caller must release the returned interface pointer at the end to prevent a memory leak.

virtual void mi::bridge::Server_job< i_id1, i_id2, i_id3, i_id4, i_id5, i_id6, i_id7, i_id8, i_id9, i_id10, i_id11, I>::serialize( neuraylib::​ISerializer* serializer) const [inline, virtual]

Empty body. This method from the base class is not needed for client jobs.