|
virtual SensorPtr | createSensor (RapidXMLReaderNodePtr sensorNode)=0 |
|
virtual std::string | getName ()=0 |
|
bool | checkBase () |
| Checks if the Plugin is valid base class.
|
|
std::string | getDescription () const |
| Return the description of the current instance.
|
|
std::string | getPath () const |
| Return the path of the current instance.
|
|
void | setDescription (const std::string &newDescription) |
| Set a description on the instance it is called on.
|
|
void | setPath (const std::string &path) |
| Set a path on the instance it is called on.
|
|
|
static constexpr const char * | VERSION = "1.0" |
|
|
typedef boost::shared_ptr< SensorFactory >(* | initialisationFunction) (void *) |
| The function pointer type of subclass initialisation functions. More...
|
|
static boost::shared_ptr< SensorFactory > | createInstance (void *) |
| Initialisation function which needs to be provided by every subclass. More...
|
|
static boost::shared_ptr< SensorFactory > | first (void * params) |
| Function which can be used to retrieve the first registered object.
|
|
static boost::shared_ptr< SensorFactory > | fromName (const std::string &name, void * params) |
| Function which can be used to retrieve an object specified by string name.
|
|
static std::string | getName () |
| Returns the class's name. More...
|
|
static std::vector< std::string > | getSubclassList () |
| Return a list of all registered subclasses.
|
|
static void | registerClass (const std::string &name, initialisationFunction init) |
| Statically called by subclasses to register their name and initialisation function so they can be found by fromName.
|
|
◆ createSensor()
virtual SensorPtr MMM::SensorFactory::createSensor |
( |
RapidXMLReaderNodePtr |
sensorNode | ) |
|
|
pure virtual |
◆ getName()
virtual std::string MMM::SensorFactory::getName |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- /common/homes/students/jenkins1/jenkins-workspace/pc081/workspace/mmmcore/DISTRIB_CODENAME/bionic/source/MMM/Motion/SensorFactory.h