RTRobotFactory implements generic factory pattern for RobotTrader instance creation. More...
Public Types | |
typedef std::map< std::string, RobotCreateFn > | FnRegistry |
Public Member Functions | |
bool | RegCreateFn (const std::string &, RobotCreateFn) |
bool | isLoaded (const std::string &) const |
virtual RoboTrader * | create (const std::string &className) |
virtual std::set< std::string > & | get_class_names () |
Public Attributes | |
FnRegistry | registry |
std::set< std::string > | loaded_class_names_ |
RTRobotFactory implements generic factory pattern for RobotTrader instance creation.
RoboTrader * RT::RTRobotFactory::create | ( | const std::string & | className | ) | [virtual] |
Creates new RoboTrader and returns pointer.
className | Robotrader implementation identifier |
Implements RT::IRTRobotFactory.
std::set< std::string > & RT::RTRobotFactory::get_class_names | ( | ) | [virtual] |
Get available Robotrader implementation identifiers.
Implements RT::IRTRobotFactory.