![]() |
VR-Forces 4.0.4 Class Documentation
|
The class responsible for managing communication between multiple DtDe instances typically running in processes on other machines. More...
Public Types | |
| typedef std::list< DtDeRecord > | IgRecords |
Public Member Functions | |
| virtual | ~DtDeCommunicator () |
| DTOR. | |
| virtual bool | initialize () |
| Initialize, called by Ig after it's member is set. | |
| virtual void | listenForMasterIg () |
| Start listening for a master. | |
| virtual bool | hasMasterIg () const |
| Check to see if the client has a Master IG. | |
| virtual void | disconnectMasterIg (const std::string &masterName) |
| Disconnect from the Master IG (starts listening automatically) | |
| bool | connectToSlaveIg (const std::string &slaveAddr, int port, std::string &igNameOut) |
| Attempt to connect to a slave. | |
| void | disconnectSlaveIg (const std::string &name) |
| Disconnect a slave IG with a given name. | |
| virtual void | tick () |
| Tick the driver. | |
| virtual const DtDriverConfiguration & | configuration () const |
| Get the current driver configuration. | |
| virtual void | addIgRecord (const DtDeRecord &record) |
| Add a client. | |
| virtual void | removeIgRecord (const DtDeRecord &record) |
| Remove a client. | |
| DtDeRecord & | hostIgRecord () |
| Get the record for the host IG (aka this de instance that owns the communicator. | |
| DtDeRecord * | findRecordByIgName (const std::string &igName) |
| Find a record by Ig's name. | |
| DtDeRecord * | findRecordByDisplayName (const std::string &displayName) |
| Find a record by the Ig's Display name. | |
| bool | masterIgOnly () const |
| Check to see if only a single master de is in use. | |
| const IgRecords & | connectedIgs () const |
| Get a set of the current IG instances. | |
| virtual const std::string & | name () const |
| Return the name of this driver. | |
Static Public Member Functions | |
| static const char * | className () |
| Returns the name of this class. | |
Protected Member Functions | |
| DtDeCommunicator (DtDe &de, DtDriverConfiguration &config) | |
| CTOR. Create derived class instead. | |
Protected Attributes | |
| DtDe & | myDe |
| DtDriverConfiguration & | myConfiguration |
| std::string | myName |
| IgRecords | myIgRecords |
| DtTcpServer * | myTcpServer |
| DtIgCommunicatorSignaler & | mySignaler |
Static Protected Attributes | |
| static const char * | myClassName |
Friends | |
| class | DtDeCommunicatorCreator |
The class responsible for managing communication between multiple DtDe instances typically running in processes on other machines.
| typedef std::list<DtDeRecord> makVrv::DtDeCommunicator::IgRecords |
| virtual makVrv::DtDeCommunicator::~DtDeCommunicator | ( | ) | [virtual] |
DTOR.
| makVrv::DtDeCommunicator::DtDeCommunicator | ( | DtDe & | de, |
| DtDriverConfiguration & | config | ||
| ) | [protected] |
CTOR. Create derived class instead.
| virtual bool makVrv::DtDeCommunicator::initialize | ( | ) | [virtual] |
Initialize, called by Ig after it's member is set.
| virtual void makVrv::DtDeCommunicator::listenForMasterIg | ( | ) | [virtual] |
Start listening for a master.
| DtCorruptedState | if the DtIG is configured to be a master. |
| virtual bool makVrv::DtDeCommunicator::hasMasterIg | ( | ) | const [virtual] |
Check to see if the client has a Master IG.
| virtual void makVrv::DtDeCommunicator::disconnectMasterIg | ( | const std::string & | masterName | ) | [virtual] |
Disconnect from the Master IG (starts listening automatically)
| bool makVrv::DtDeCommunicator::connectToSlaveIg | ( | const std::string & | slaveAddr, |
| int | port, | ||
| std::string & | igNameOut | ||
| ) |
Attempt to connect to a slave.
| DtCorruptedState | if the DtIG is NOT configured to be a master. If connectToSlaveIg() returns true, igNameOut will contain the name of the connected slave IG. |
| void makVrv::DtDeCommunicator::disconnectSlaveIg | ( | const std::string & | name | ) |
Disconnect a slave IG with a given name.
| virtual void makVrv::DtDeCommunicator::tick | ( | ) | [virtual] |
Tick the driver.
| virtual const DtDriverConfiguration& makVrv::DtDeCommunicator::configuration | ( | ) | const [virtual] |
Get the current driver configuration.
| virtual void makVrv::DtDeCommunicator::addIgRecord | ( | const DtDeRecord & | record | ) | [virtual] |
Add a client.
| virtual void makVrv::DtDeCommunicator::removeIgRecord | ( | const DtDeRecord & | record | ) | [virtual] |
Remove a client.
Get the record for the host IG (aka this de instance that owns the communicator.
| DtDeRecord* makVrv::DtDeCommunicator::findRecordByIgName | ( | const std::string & | igName | ) |
Find a record by Ig's name.
| DtDeRecord* makVrv::DtDeCommunicator::findRecordByDisplayName | ( | const std::string & | displayName | ) |
Find a record by the Ig's Display name.
| bool makVrv::DtDeCommunicator::masterIgOnly | ( | ) | const |
Check to see if only a single master de is in use.
| const IgRecords& makVrv::DtDeCommunicator::connectedIgs | ( | ) | const |
Get a set of the current IG instances.
| virtual const std::string& makVrv::DtDeCommunicator::name | ( | ) | const [virtual] |
Return the name of this driver.
Composed of the host name and process id.
| static const char* makVrv::DtDeCommunicator::className | ( | ) | [static] |
Returns the name of this class.
Required for DtSubjectAnnouncer::findInstance().
friend class DtDeCommunicatorCreator [friend] |
const char* makVrv::DtDeCommunicator::myClassName [static, protected] |
DtDe& makVrv::DtDeCommunicator::myDe [protected] |
std::string makVrv::DtDeCommunicator::myName [protected] |
IgRecords makVrv::DtDeCommunicator::myIgRecords [protected] |
DtTcpServer* makVrv::DtDeCommunicator::myTcpServer [protected] |