Public Member Functions
|virtual EOClass *||make (std::istream &_is)=0|
|Another factory methods: creates an object from an std::istream, reading from it whatever is needed to create the object. |
ctors and dtors
|virtual std::string||className () const|
|Return the class id. |
A factory is used to create other objects. In particular, it can be used so that objects of that kind canīt be created in any other way. It should be instantiated with anything that needs a factory, like selectors or whatever; but the instance class should be the parent class from which all the object that are going to be created descend. This class basically defines an interface, as usual. The base factory class for each hierarchy should be redefined every time a new object is added to the hierarchy, which is not too good, but in any case, some code would have to be modified
|virtual EOClass* eoFactory< EOClass >::make||(||std::istream &||_is||)||
Another factory methods: creates an object from an std::istream, reading from it whatever is needed to create the object.
Usually, the format for the std::istream will be\ objectType parameter1 parameter2 ... parametern\
Referenced by eoBitOpFactory< EOT >::make().