#include <ServiceManI.h>
Constructor for creating a ServiceManager instance.
Set The Service that is to be served by this ServiceManager. NOTE: A ServiceManager can manage either a detector or detectorTrainer but not both! Parms: The Algorithm instance to be served by this manager.
Pass the constructed detector instance to the ServiceManager.
std::string ServiceManagerI::getDataDir |
( |
| ) |
|
|
virtual |
string ServiceManagerI::getModelFileFromConfig |
( |
| ) |
|
|
virtual |
Look for a property entry in config.service that corresponds to ServiceNamex.TrainedModel = filename Note that the "x" is significant: the name of the service is ServiceName but we need ServiceNamex so that ICE doesn't complain about unknown properties. Return filename if found, empty string otherwise.
Implements cvac::ServiceManager.
void ServiceManagerI::start |
( |
const ::std::string & |
name, |
|
|
const Ice::CommunicatorPtr & |
communicator, |
|
|
const Ice::StringSeq & |
|
|
) |
| |
|
virtual |
The start function called by IceBox to start this service.
The start function called by IceBox to start this service. This handles all the icebox interactions. We obtain the service name from the config.icebox file as follows. Given this entry: IceBox.Service.BOW_Detector=bowICEServer:create –Ice.Config=config.service ... the name of the service is BOW_Detector.
void ServiceManagerI::stop |
( |
| ) |
|
|
virtual |
The stop function called by IceBox to stop this service.
Ice::ObjectAdapterPtr cvac::ServiceManagerI::mAdapter |
|
private |
The documentation for this class was generated from the following files: