gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
ORB::ORBObject< ZEROCICETYPE > Class Template Reference

#include <ORB.H>

Inheritance diagram for ORB::ORBObject< ZEROCICETYPE >:
[legend]
Collaboration diagram for ORB::ORBObject< ZEROCICETYPE >:
[legend]

Static Public Attributes

static const string name
 The name of this class - once set, it can't be changed. More...
 

Detailed Description

template<class ZEROCICETYPE>
class ORB::ORBObject< ZEROCICETYPE >

Basic type to have remote procedure call And serialisation (Object request Broking) provided by ZeroC ICE (www.zeroc.com)

Here is an example of how to setup a class which interfaces a ORB network protocol (ORBTestICE.ice below) :

class ORBTestClass : public ORBObject<ORBTEST::ORBTestICE> {
//implement the virtual method which is in the ORBTestICE.ice protocol
int method(int input, const Ice::Current& c){
return input+1;
}
};
template<> const string ORBTestClass::ORBObject<ORBTEST::ORBTestICE>::name("ORBTestClass"); // setup the type identity of the class

Where the ORBTestICE.ice file looks like so :

// Author Matt Flax <flatmax@>
// Date: 2013.05.02
#ifndef ORBTESTICE_ICE_
#define ORBTESTICE_ICE_
module ORBTEST {
// a class with a simple method and variable
class ORBTestICE {
int method(int input);
float variable;
};
};
#endif // ORBTESTICE_ICE_
Template Parameters
ZEROCICETYPEThe class generated by splice2cpp on your ice file
Examples:
ORBTest.C.

Definition at line 89 of file ORB.H.

Member Data Documentation

◆ name

template<class ZEROCICETYPE >
const string ORB::ORBObject< ZEROCICETYPE >::name
static

The name of this class - once set, it can't be changed.

Definition at line 91 of file ORB.H.


The documentation for this class was generated from the following file:
gtkIOStream: ORB::ORBObject< ZEROCICETYPE > Class Template Reference
GTK+ IOStream  Beta