PaCO++  0.05
InterfaceParallel_impl Class Reference

#include <PaCO++_src.h>

List of all members.

Public Member Functions

virtual void addException (const CORBA::Short except)
void deploy (CORBA::Short rank)
virtual PaCO::ConnectionInfosgetConnectionInfos ()
CORBA::Short getDeployRank ()
CORBA::Short getMyRank ()
CORBA::Short getTotalNode ()
void init_InterfaceParallel (CORBA::Short myRank, CORBA::Short totalNode)
 InterfaceParallel_impl (CORBA::ORB_ptr current_orb, char *ior)
void refReturnObject (const char *ref)
virtual void setRef (const PaCO::InterfaceParallel::ref &ref_nodes)
virtual ~InterfaceParallel_impl ()

Public Attributes

PaCO::InterfaceParallel::ref _ref_nodes

Protected Attributes

CORBA::ORB_ptr _orb
string return_object

Private Attributes

CORBA::Short _deployRank
string _ior
CORBA::Short _myRank
CORBA::Short _totalNode

Detailed Description

Definition at line 60 of file PaCO++_src.h.


Constructor & Destructor Documentation

InterfaceParallel_impl::InterfaceParallel_impl ( CORBA::ORB_ptr  current_orb,
char *  ior 
)

Definition at line 263 of file PaCO++_src.cc.

References _ior, _myRank, _orb, and _totalNode.

{
  _myRank = -1;
  _totalNode = -1;
  _orb = current_orb;
  _ior = ior;
}

Definition at line 271 of file PaCO++_src.cc.

{
}

Member Function Documentation

virtual void InterfaceParallel_impl::addException ( const CORBA::Short  except) [inline, virtual]

Definition at line 81 of file PaCO++_src.h.

{}
void InterfaceParallel_impl::deploy ( CORBA::Short  rank)

Definition at line 276 of file PaCO++_src.cc.

References _deployRank, _ior, and _orb.

{
  cerr << "Debut de deploy()"<< endl;
  _deployRank = rank;
  CORBA::Object_var object;
  object = _orb->string_to_object(_ior.c_str());
  PaCO::InterfaceManager_var interface;
  interface = PaCO::InterfaceManager::_narrow(object);
  char * obj = _orb->object_to_string(_this());
  try
    {
      interface->setNewNode(obj, rank);
    }
  catch (const CORBA::Exception & e)
    {
      cerr << "Argument : " << obj << endl;
      cerr << "InterfaceParallel_impl::deploy : Exception : " << e << endl;
    }
  cerr << "Fin de deploy()"<< endl;
}

Definition at line 324 of file PaCO++_src.cc.

{
  return NULL;
}

Definition at line 304 of file PaCO++_src.cc.

References _deployRank.

{
  return _deployRank;
}

Definition at line 298 of file PaCO++_src.cc.

References _myRank.

{
  return _myRank;
}

Definition at line 310 of file PaCO++_src.cc.

References _totalNode.

{
  return _totalNode;
}
void InterfaceParallel_impl::init_InterfaceParallel ( CORBA::Short  myRank,
CORBA::Short  totalNode 
)

Definition at line 316 of file PaCO++_src.cc.

References _myRank, and _totalNode.

{
  _myRank = myRank;
  _totalNode = totalNode;
  cerr << "Servant : " << myRank << " initialized" << endl;
}
void InterfaceParallel_impl::refReturnObject ( const char *  ref)

Definition at line 330 of file PaCO++_src.cc.

References return_object.

{
  return_object = (char *) ref;
}
void InterfaceParallel_impl::setRef ( const PaCO::InterfaceParallel::ref ref_nodes) [virtual]

Definition at line 336 of file PaCO++_src.cc.

References _ref_nodes.

{
  _ref_nodes.length(ref_nodes.length());
  for (CORBA::ULong i = 0; i<ref_nodes.length(); i++)
    _ref_nodes[i] = ref_nodes[i];
}

Member Data Documentation

CORBA::Short InterfaceParallel_impl::_deployRank [private]

Definition at line 90 of file PaCO++_src.h.

Referenced by deploy(), and getDeployRank().

string InterfaceParallel_impl::_ior [private]

Definition at line 93 of file PaCO++_src.h.

Referenced by deploy(), and InterfaceParallel_impl().

CORBA::Short InterfaceParallel_impl::_myRank [private]

Definition at line 91 of file PaCO++_src.h.

Referenced by getMyRank(), init_InterfaceParallel(), and InterfaceParallel_impl().

CORBA::ORB_ptr InterfaceParallel_impl::_orb [protected]

Definition at line 86 of file PaCO++_src.h.

Referenced by deploy(), and InterfaceParallel_impl().

CORBA::Short InterfaceParallel_impl::_totalNode [private]

Definition at line 92 of file PaCO++_src.h.

Referenced by getTotalNode(), init_InterfaceParallel(), and InterfaceParallel_impl().

Definition at line 87 of file PaCO++_src.h.

Referenced by refReturnObject().


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