![]() |
VR-Exchange 2.2 API Documentation
|
This class is used to initialize a DtBroker instance. More...

Public Member Functions | |
| DtBrokerInitializer (int argc, char **argv, const char *version) | |
| Takes the command line arguments and the version of this broker in the form of a const char *. | |
| virtual | ~DtBrokerInitializer () |
| Destructor. | |
| DtBrokerInitializer & | operator= (const DtBrokerInitializer &other) |
| Assignment Operator. | |
| virtual void | parseCmdLine () |
| Parse the command line. | |
| virtual void | loadFile () |
| Load a configuration file. | |
| virtual void | loadFile (const DtString &fileName) |
| virtual void | saveFile () |
| Save a configuration file. | |
| virtual void | saveFile (const DtString &fileName) |
| virtual DtString | brokerName () const |
| The name of this broker. | |
| virtual int | notifyLevel () const |
| The notify level of this broker. | |
| virtual void | setNotifyLevel (int nl) |
| DtString | logFileName () const |
| Returns the name of the log file to use. | |
| virtual void | setLogFileName (const DtString &lfn) |
| DtString | pluginDirectory () const |
| Returns the name of the log file to use. | |
| virtual void | setPluginDirectory (const DtString &lfn) |
| virtual int | maxControlMessages () const |
| Returns the maximum number of control messages to read per tic. | |
| virtual void | setMaxControlMessages (int mcm) |
| virtual int | maxInteractionMessages () const |
| Returns the maximum number of Interaction messages to read per tick. | |
| virtual void | setMaxInteractionMessages (int mim) |
| virtual int | maxObjectMessages () const |
| Returns the maximum number of object messages to read per tick. | |
| virtual void | setMaxObjectMessages (int mom) |
| virtual int | pollingInterval () const |
| Returns the interval, in ms, between each call to drainInput() on the exercise connection. | |
| virtual void | setPollingInterval (int pi) |
| virtual DtTime | statisticsReportingInterval () const |
| Returns the statistics reporting interval (in seconds). | |
| virtual void | setStatisticsReportingInterval (DtTime si) |
| virtual bool | printStatistics () const |
| Returns whether statistics are printed to the log file. | |
| virtual void | setPrintStatistics (bool val) |
| virtual int | tcpPort () const |
| TCP port to use to maintain connectivity with the Data Exchange. | |
| virtual void | setTcpPort (int port) |
| virtual bool | dumpEnvironment () const |
| The broker can be configured to dump its known environment at startup. | |
| virtual void | setDumpEnvironment (bool shouldDumpEnv) |
| virtual DtString | controlQueueName () const |
| Returns the queue names for each type of queue. | |
| virtual DtString | interactionQueueName () const |
| virtual DtString | objectQueueName () const |
| virtual bool | oneToOneMapping () const |
| Broker should generate a one to one mapping for translations. | |
| virtual void | setOneToOneMapping (bool val) |
| virtual const std::vector < DtString > & | debuggedTranslators () const |
| Returns a list of translators who's debugging is enabled. | |
| virtual void | addDebuggedTranslator (const DtString &) |
| virtual void | removeDebuggedTranslator (const DtString &) |
| virtual void | setDebuggedTranslators (const std::set< DtString > &debuggedSet) |
| virtual const std::vector < DtString > & | disabledTranslatorSet () const |
| Returns a list of translators who are disabled. | |
| virtual void | addDisabledTranslator (const DtString &) |
| virtual void | removeDisabledTranslator (const DtString &) |
| virtual void | setDisabledTranslators (const std::set< DtString > &disabledSet) |
| bool | useGui () const |
| Returns true if the broker can use a GUI. | |
| bool | showConnectionInfoDialog () const |
| Returns true if the broker is given the argument to show the connection info dialog on startup. | |
| int & | argc () |
| The argument count as passed in the CTOR. | |
| char ** | argv () |
| The argument list as passed in the CTOR. | |
| DtCmdLine::CmdLine & | cmdLine () |
| Returns a reference to the CMD Line Object. | |
| const std::vector < DtObjectFilter > & | objectFilters () const |
| A list of all objects set for filtering in this broker. | |
| virtual void | setObjectFilters (const std::vector< DtObjectFilter > &filters) |
| virtual void | addObjectFilter (const DtObjectFilter &filter) |
| virtual void | removeObjectFilter (const DtObjectFilter &filter) |
| DtString | fileName () const |
| Returns the name of the file that this initializer refers to. | |
Protected Attributes | |
| DtConfigVariable< bool > * | myShowInfoDialogFlag |
| DtConfigVariable< DtString > * | myMtlFileName |
| DtConfigVariable< DtString > * | myCmdLineBrokerName |
| DtConfigVariable< int > * | myCmdLineTcpPort |
| DtConfigVariable< int > * | myCmdLineNotifyLevel |
| DtConfigVariable< bool > * | myCmdLineDumpEnvFlag |
| DtConfigVariable< bool > * | myUseGuiFlag |
| DtConfigVariable< DtString > * | myLogFileName |
| DtConfigVariable< DtString > * | myPluginDirectory |
| DtConfigVariable< DtString > * | myControlQueueName |
| DtConfigVariable< DtString > * | myInteractionQueueName |
| DtConfigVariable< DtString > * | myObjectQueueName |
| DtConfigVariable< bool > * | myOneToOneTranslation |
| DtConfigVariable< int > * | myMaxControlMessages |
| DtConfigVariable< int > * | myMaxInterMessages |
| DtConfigVariable< int > * | myMaxObjectMessages |
| DtConfigVariable< int > * | myPollingInterval |
| DtConfigVariable< DtTime > * | myStatisticsReportingInterval |
| DtConfigVariable< bool > * | myPrintStatisticsFlag |
| DtMultiConfigVariable< DtString > * | myDebuggedTranslators |
| DtMultiConfigVariable< DtString > * | myDisabledTranslators |
| DtMultiConfigVariable < DtObjectFilter > * | myFilterManagerConfig |
| int | myArgc |
| char ** | myArgv |
| DtString | myProgramName |
| DtString | myVersionString |
| DtApplicationSettings | mySettings |
Private Member Functions | |
| DtBrokerInitializer (const DtBrokerInitializer &other) | |
| Copy CTOR not implemented, this class can not be copied yet. | |
This class is used to initialize a DtBroker instance.
A class to initialize DtBroker instances.
Because brokers are used in standalone applications which are started by the portal, initial values come from both the command line and an MTL file. Much of the command line needs to be consistant between brokers, one such parameter is -l, the MTL file to read. This class will look for the -l command line and the file name that comes after it. That MTL file will then be processed. This class is defined in libBroker.
| MAKVrExchange::DtBrokerInitializer::DtBrokerInitializer | ( | int | argc, |
| char ** | argv, | ||
| const char * | version | ||
| ) |
Takes the command line arguments and the version of this broker in the form of a const char *.
|
virtual |
Destructor.
|
private |
Copy CTOR not implemented, this class can not be copied yet.
| DtBrokerInitializer& MAKVrExchange::DtBrokerInitializer::operator= | ( | const DtBrokerInitializer & | other | ) |
Assignment Operator.
|
virtual |
Parse the command line.
This method will parse the command line and set values according to what options have been set on the command line. This should be called by the creator of this instance. In addition this will load the configuration file specified by the -l argument (broker.bcf by default)
|
virtual |
Load a configuration file.
|
virtual |
|
virtual |
Save a configuration file.
|
virtual |
|
virtual |
The name of this broker.
Referenced by MAKVrExchange::DtBroker::brokerName().
|
virtual |
The notify level of this broker.
|
virtual |
| DtString MAKVrExchange::DtBrokerInitializer::logFileName | ( | ) | const |
Returns the name of the log file to use.
If the logFileName is "" then a file is not used for logging.
|
virtual |
| DtString MAKVrExchange::DtBrokerInitializer::pluginDirectory | ( | ) | const |
Returns the name of the log file to use.
If the logFileName is "" then a file is not used for logging.
|
virtual |
|
virtual |
Returns the maximum number of control messages to read per tic.
|
virtual |
|
virtual |
Returns the maximum number of Interaction messages to read per tick.
|
virtual |
|
virtual |
Returns the maximum number of object messages to read per tick.
|
virtual |
|
virtual |
Returns the interval, in ms, between each call to drainInput() on the exercise connection.
Referenced by MAKVrExchange::DtBroker::pollingInterval().
|
virtual |
|
virtual |
Returns the statistics reporting interval (in seconds).
|
virtual |
|
virtual |
Returns whether statistics are printed to the log file.
|
virtual |
|
virtual |
TCP port to use to maintain connectivity with the Data Exchange.
The Default is 5111, and setting this to 0 will disable this functionality.
|
virtual |
|
virtual |
The broker can be configured to dump its known environment at startup.
This can be helpful in debugging.
|
virtual |
|
virtual |
Returns the queue names for each type of queue.
Queues are set through the command line by the portal that is controlling this broker.
|
virtual |
|
virtual |
|
virtual |
Broker should generate a one to one mapping for translations.
|
virtual |
|
virtual |
Returns a list of translators who's debugging is enabled.
This list of translator names is assembled by reading the broker's .mtl configuration file for the "debuggedTranslators" parameter.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns a list of translators who are disabled.
This list of translator names is assembled by reading the broker's .mtl configuration file for the "disabledTranslators" parameter.
|
virtual |
|
virtual |
|
virtual |
| bool MAKVrExchange::DtBrokerInitializer::useGui | ( | ) | const |
Returns true if the broker can use a GUI.
This can be disabled via a command line argument or by not having the DISPLAY variable set.
| bool MAKVrExchange::DtBrokerInitializer::showConnectionInfoDialog | ( | ) | const |
Returns true if the broker is given the argument to show the connection info dialog on startup.
| int& MAKVrExchange::DtBrokerInitializer::argc | ( | ) |
The argument count as passed in the CTOR.
| char** MAKVrExchange::DtBrokerInitializer::argv | ( | ) |
The argument list as passed in the CTOR.
| DtCmdLine::CmdLine& MAKVrExchange::DtBrokerInitializer::cmdLine | ( | ) |
Returns a reference to the CMD Line Object.
|
inline |
A list of all objects set for filtering in this broker.
References myFilterManagerConfig.
|
virtual |
|
virtual |
|
virtual |
|
inline |
Returns the name of the file that this initializer refers to.
References myMtlFileName.
|
protected |
|
protected |
Referenced by fileName().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by objectFilters().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |