GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Attributes | List of all members
ORB::ORBObject< ZEROCICETYPE > Class Template Reference

#include <ORB.H>

Inheritance diagram for ORB::ORBObject< ZEROCICETYPE >:
Inheritance graph
[legend]
Collaboration diagram for ORB::ORBObject< ZEROCICETYPE >:
Collaboration graph
[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

Definition at line 74 of file ORB.H.

Member Data Documentation

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 76 of file ORB.H.


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