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

#include <rlcorba.h>

List of all members.

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

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

Definition at line 82 of file rlcorba.h.

  {
    orb = CORBA::ORB_init(ac,av);
    obj = orb->resolve_initial_references("RootPOA");
    poa = PortableServer::POA::_narrow(obj);
    mgr = poa->the_POAManager();
    server = server_servant._this();
    CORBA::String_var  str = orb->object_to_string(server);
    cout << str << endl;   // write reference to stdout
    mgr->activate();
  }
template<class Timpl , class Tvar >
rlCorbaServer< Timpl, Tvar >::~rlCorbaServer ( ) [inline]

Definition at line 93 of file rlcorba.h.

  {
  }

Member Function Documentation

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

Definition at line 97 of file rlcorba.h.

  {
    orb->run();
  }

Member Data Documentation

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

Definition at line 101 of file rlcorba.h.

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

Definition at line 105 of file rlcorba.h.

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

Definition at line 103 of file rlcorba.h.

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

Definition at line 102 of file rlcorba.h.

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

Definition at line 104 of file rlcorba.h.

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

Definition at line 107 of file rlcorba.h.

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:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines