CARMA C++
|
ControlServer class encapsulates most control details. More...
#include <carma/antenna/ovro/control/ControlServer.h>
Public Member Functions | |
ControlServer (carma::antenna::ovro::OvroMaster &master, unsigned short antennaId, carma::monitor::OvroSubsystem &mon, carma::corba::Server &server, const std::string &confDir, bool simulate=false) | |
Constructor. More... | |
void | runServer () |
Run control server. More... | |
virtual | ~ControlServer () |
Destructor. More... | |
ControlServer class encapsulates most control details.
This class is mainly responsible for encapsulating internal CORBA control details by incarnating all canbus related control DOs which in turn delegate requests to canbus::Device class derivatives or related classes. The idea behind the class is to confine most details to a single class so that they can be more modularly changed in the future if need be.
Definition at line 55 of file ControlServer.h.
carma::antenna::ovro::ControlServer::ControlServer | ( | carma::antenna::ovro::OvroMaster & | master, |
unsigned short | antennaId, | ||
carma::monitor::OvroSubsystem & | mon, | ||
carma::corba::Server & | server, | ||
const std::string & | confDir, | ||
bool | simulate = false |
||
) |
Constructor.
The constructor is responsible for creating all CORBA DOs and publishing them. Note this object must be created on the stack. The main reason for this is that this object will need to be destroyed prior to destruction of the master class. That said, make sure this object is destroyed prior to destroying an OvroMaster instance.
master | Pointer to OvroMaster object. |
antennaId | Unique ID for antenna. |
mon | Reference to ovro subsystem instance. |
confDir | Location of the conf directory. |
simulate | True if we are simulating, false if RTS. |
|
virtual |
Destructor.
void carma::antenna::ovro::ControlServer::runServer | ( | ) |
Run control server.
This method blocks on the orb!