CARMA C++
|
Class to encapsulate CORBA client functionality in CARMA. More...
#include <carma/corba/Client.h>
Public Member Functions | |
Client (int argc, char *argv[], int rrtt=60) | |
Initialize CORBA client runtime. More... | |
template<typename T > | |
T::_var_type | resolveName (const ::std::string &name, bool initialRef=false) |
Resolve specified name to a CORBA object of the templatized output type. More... | |
template<typename N > | |
bool | sendNotification (const ::std::string &channelName, const ::std::string &proxyName, const N ¬ification) |
Send a notification of type N to specified notification server channel. More... | |
~Client () | |
Destructor Note: doesn't cleanup remote resources allocated with this class. More... | |
Static Public Member Functions | |
static void | applyTimeoutPolicies (CORBA::ORB_ptr orb, int rrtt=60) |
Apply client timeout policies. More... | |
Friends | |
class | Server |
Class to encapsulate CORBA client functionality in CARMA.
For examples see the Test directory.
Author: Andrew Beard
carma::corba::Client::Client | ( | int | argc, |
char * | argv[], | ||
int | rrtt = 60 |
||
) |
Initialize CORBA client runtime.
argc | Command line arguments to initialize ORB from. |
argv | Command line arguments to initialized ORB from. |
rrtt | Relative round-trip timeout for commands in seconds. |
carma::corba::Client::~Client | ( | ) |
Destructor Note: doesn't cleanup remote resources allocated with this class.
This is NOT a shortcoming of this class, but a fundamental limitation of the ownership concept in distributed environments in general.
|
static |
Apply client timeout policies.
This is only exposed here so that we apply the same timeout policies to util::CorbaUtils and util::Orb (both call this).
rrtt | Relative round-trip timeout for commands. |
T::_var_type carma::corba::Client::resolveName | ( | const ::std::string & | name, |
bool | initialRef = false |
||
) |
Resolve specified name to a CORBA object of the templatized output type.
Nameserver names have the format "context.name" where a context contains multiple contexts and/or objects.
name | Hierarchical nameserver name OR initial service name. |
initialRef | True if name is an initial service name. |
bool carma::corba::Client::sendNotification | ( | const ::std::string & | channelName, |
const ::std::string & | proxyName, | ||
const N & | notification | ||
) |
Send a notification of type N to specified notification server channel.
channelName | Name of notification channel. |
proxyName | Name of notification proxy connection. |
notification | IDL defined structure of notification. |