#include <string>
#include <iosfwd>
#include <map>
#include <simthetic/propertylist.h>
Go to the source code of this file.
Namespaces | |
namespace | simth |
Functions | |
std::ostream & | operator<< (std::ostream &os, const DeviceFactory::FactoryMap &fm) |
In this header the class BasicDeviceFactory is declared. In order to use device types as a dynamically loaded plugin, these classes operate as an indirection in the process of creating a Device. Each plugin module that defines a new device class, has to derive a new DeviceFactory that creates an instance of that device class. Hence, the function makedevicefactory() (that has to be defined also in a plugin module) will create an instance of that special device factory (that by itself will create by itself the special device defined in the module).
|
For easy writing to output. |