B2BITS FIX Antenna C++ 2.33.0
|
Represents BATS application. More...
#include <B2BITS_BatsApplication.h>
Public Member Functions | |
virtual UnitService * | createService (const std::string &channelId, const std::string &symbol, const std::string &expiration, const std::string &putOrCall, const std::string &iface, const RuntimeParameters *params=NULL)=0 |
Creates service by channel, and unit params. | |
virtual UnitService * | createService (const std::string &channelId, System::u8 unitId, const std::string &iface, const RuntimeParameters *params=NULL)=0 |
Creates service by channel and unit id. | |
virtual void | createServices (const std::string &iface, const RuntimeParameters *params=NULL)=0 |
Creates all services specified in configuration file. | |
virtual System::u8 | findUnitId (const std::string &channelId, const std::string &symbol, const std::string &expiration, const std::string &putOrCall)=0 |
Returns unit Id or throws if unit has not been configured. | |
virtual const RuntimeParameters & | getChannelParams (const std::string &channelId) const =0 |
Returns channel options. | |
virtual const RuntimeParameters & | getParams () const =0 |
Returns application parameters. | |
virtual UnitService * | getService (const std::string &channelId, const std::string &symbol, const std::string &expiration, const std::string &putOrCall) const =0 |
Returns service by channel, and unit params. | |
virtual UnitService * | getService (const std::string &channelId, System::u8 unitId) const =0 |
Returns service by channel and unit id. | |
virtual UnitService * | getService (unsigned index) const =0 |
Returns service by index. | |
virtual unsigned | getServicesCount () const =0 |
Returns the number of created services. | |
virtual void | release () const =0 |
Destroys application. | |
virtual void | removeService (const std::string &channelId, System::u8 unitId)=0 |
Disconnects and destroys a service from the application. | |
virtual void | removeServices ()=0 |
Disconnects and destroys all services from the application. | |
virtual void | setChannelParams (const std::string &channelId, const RuntimeParameters ¶ms)=0 |
Overrides application options for channel. | |
Represents BATS application.
|
pure virtual |
Creates service by channel, and unit params.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
symbol | Symbol to subscribe to. Proper unit will be found using unit@coderange attribute in XML configuration file |
expiration | unit@expiration attribute in XML configuration file |
putOrCall | unit@putorcall attribute in XML configuration file |
iface | Address of a local network interface to use when subscribing to multicast feed |
params | Runtime parameters, when specified, override current channel's parameters |
Utils::Exception | if error occurs, usually if service has been misconfigured |
|
pure virtual |
Creates service by channel and unit id.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
unitId | Id of the unit specified as unit@id attribute in XML configuration file |
iface | Address of a local network interface to use when subscribing to multicast feed |
params | Runtime parameters, when specified, override current channel's parameters |
Utils::Exception | if error occurs, usually if service has been misconfigured |
|
pure virtual |
Creates all services specified in configuration file.
Logs error message if some of the service have not been created
iface | Address of a local network interface to use when subscribing to multicast feed |
params | Runtime parameters, when specified, override current channel's parameters |
no |
|
pure virtual |
Returns unit Id or throws if unit has not been configured.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
symbol | Symbol to subscribe to. Proper unit will be found using unit@coderange attribute in XML configuration file |
expiration | unit@expiration attribute in XML configuration file |
putOrCall | unit@putorcall attribute in XML configuration file |
Utils::Exception | if unit has not been configured |
|
pure virtual |
Returns channel options.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
Utils::Exception | if error occurs |
|
pure virtual |
Returns application parameters.
no |
|
pure virtual |
Returns service by channel, and unit params.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
symbol | Symbol to subscribe to. Proper unit will be found using unit@coderange attribute in XML configuration file |
expiration | unit@expiration attribute in XML configuration file |
putOrCall | unit@putorcall attribute in XML configuration file |
no |
|
pure virtual |
Returns service by channel and unit id.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
unitId | Id of the unit specified as unit@id attribute in XML configuration file |
no |
|
pure virtual |
Returns service by index.
Returns service by zero based index
index | Zero-based index of the service, must be < getServicesCount() |
no |
|
pure virtual |
Returns the number of created services.
You can get a signle service instance using getService(unsigned index) const method
no |
|
pure virtual |
Destroys application.
Disconnects and destroys all running services and threads.
no |
|
pure virtual |
Disconnects and destroys a service from the application.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
unitId | Id of the unit specified as unit@id attribute in XML configuration file |
Utils::Exception | if error occurs |
|
pure virtual |
Disconnects and destroys all services from the application.
no |
|
pure virtual |
Overrides application options for channel.
channelId | Id of the channel, specified as channel@id attribute in XML configuration file |
params | parameters for particular channel |
Utils::Exception | if error occurs |