rllib  1
Public Member Functions | Public Attributes | List of all members
rlCorbaServer< Timpl, Tvar > Class Template Reference

#include <rlcorba.h>

Public Member Functions

 rlCorbaServer (int ac, char **av, const char *)
 
 ~rlCorbaServer ()
 
void run ()
 

Public Attributes

char * adr
 
CORBA::ORB_var orb
 
CORBA::Object_var obj
 
PortableServer::POA_var poa
 
PortableServer::POAManager_var mgr
 
Timpl server_servant
 
Tvar server
 

Detailed Description

template<class Timpl, class Tvar>
class rlCorbaServer< Timpl, Tvar >

Definition at line 78 of file rlcorba.h.

Constructor & Destructor Documentation

◆ rlCorbaServer()

template<class Timpl , class Tvar >
rlCorbaServer< Timpl, Tvar >::rlCorbaServer ( int  ac,
char **  av,
const char *   
)
inline

Definition at line 82 of file rlcorba.h.

83  {
84  orb = CORBA::ORB_init(ac,av);
85  obj = orb->resolve_initial_references("RootPOA");
86  poa = PortableServer::POA::_narrow(obj);
87  mgr = poa->the_POAManager();
88  server = server_servant._this();
89  CORBA::String_var str = orb->object_to_string(server);
90  cout << str << endl; // write reference to stdout
91  mgr->activate();
92  }
Tvar server
Definition: rlcorba.h:107
PortableServer::POA_var poa
Definition: rlcorba.h:104
Timpl server_servant
Definition: rlcorba.h:106
CORBA::ORB_var orb
Definition: rlcorba.h:102
CORBA::Object_var obj
Definition: rlcorba.h:103
PortableServer::POAManager_var mgr
Definition: rlcorba.h:105

◆ ~rlCorbaServer()

template<class Timpl , class Tvar >
rlCorbaServer< Timpl, Tvar >::~rlCorbaServer ( )
inline

Definition at line 93 of file rlcorba.h.

94  {
95  }

Member Function Documentation

◆ run()

template<class Timpl , class Tvar >
void rlCorbaServer< Timpl, Tvar >::run ( )
inline

Definition at line 97 of file rlcorba.h.

98  {
99  orb->run();
100  }
CORBA::ORB_var orb
Definition: rlcorba.h:102

Member Data Documentation

◆ adr

template<class Timpl , class Tvar >
char* rlCorbaServer< Timpl, Tvar >::adr

Definition at line 101 of file rlcorba.h.

◆ mgr

template<class Timpl , class Tvar >
PortableServer::POAManager_var rlCorbaServer< Timpl, Tvar >::mgr

Definition at line 105 of file rlcorba.h.

◆ obj

template<class Timpl , class Tvar >
CORBA::Object_var rlCorbaServer< Timpl, Tvar >::obj

Definition at line 103 of file rlcorba.h.

◆ orb

template<class Timpl , class Tvar >
CORBA::ORB_var rlCorbaServer< Timpl, Tvar >::orb

Definition at line 102 of file rlcorba.h.

◆ poa

template<class Timpl , class Tvar >
PortableServer::POA_var rlCorbaServer< Timpl, Tvar >::poa

Definition at line 104 of file rlcorba.h.

◆ server

template<class Timpl , class Tvar >
Tvar rlCorbaServer< Timpl, Tvar >::server

Definition at line 107 of file rlcorba.h.

◆ server_servant

template<class Timpl , class Tvar >
Timpl rlCorbaServer< Timpl, Tvar >::server_servant

Definition at line 106 of file rlcorba.h.


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