RT::RTRobotFactory Class Reference

RTRobotFactory implements generic factory pattern for RobotTrader instance creation. More...

Inheritance diagram for RT::RTRobotFactory:
RT::IRTRobotFactory

List of all members.

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 RoboTradercreate (const std::string &className)
virtual std::set< std::string > & get_class_names ()

Public Attributes

FnRegistry registry
std::set< std::string > loaded_class_names_

Detailed Description

RTRobotFactory implements generic factory pattern for RobotTrader instance creation.


Member Function Documentation

RoboTrader * RT::RTRobotFactory::create ( const std::string &  className  )  [virtual]

Creates new RoboTrader and returns pointer.

Parameters:
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.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator
Generated on Tue Jun 7 15:51:19 2011 for RTAPI by  doxygen 1.6.3