git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
74 lines
2.2 KiB
Groff
74 lines
2.2 KiB
Groff
.TH "eoFactory" 3 "19 Oct 2006" "Version 0.9.4-cvs" "EO" \" -*- nroff -*-
|
||
.ad l
|
||
.nh
|
||
.SH NAME
|
||
eoFactory \- \fBEO\fP Factory.
|
||
|
||
.PP
|
||
.SH SYNOPSIS
|
||
.br
|
||
.PP
|
||
\fC#include <eoFactory.h>\fP
|
||
.PP
|
||
Inherits \fBeoObject\fP.
|
||
.PP
|
||
.SS "Public Member Functions"
|
||
|
||
.in +1c
|
||
.ti -1c
|
||
.RI "virtual EOClass * \fBmake\fP (std::istream &_is)=0"
|
||
.br
|
||
.RI "\fIAnother factory methods: creates an object from an std::istream, reading from it whatever is needed to create the object. \fP"
|
||
.in -1c
|
||
.PP
|
||
.RI "\fBctors and dtors\fP"
|
||
.br
|
||
|
||
.in +1c
|
||
.in +1c
|
||
.ti -1c
|
||
.RI "\fBeoFactory\fP ()"
|
||
.br
|
||
.RI "\fIconstructor \fP"
|
||
.ti -1c
|
||
.RI "virtual \fB~eoFactory\fP ()"
|
||
.br
|
||
.RI "\fIdestructor \fP"
|
||
.in -1c
|
||
.in -1c
|
||
.PP
|
||
.RI "\fBeoObject methods\fP"
|
||
.br
|
||
|
||
.in +1c
|
||
.in +1c
|
||
.ti -1c
|
||
.RI "virtual std::string \fBclassName\fP () const "
|
||
.br
|
||
.RI "\fIReturn the class id. \fP"
|
||
.in -1c
|
||
.in -1c
|
||
.SH "Detailed Description"
|
||
.PP
|
||
|
||
.SS "template<class EOClass> class eoFactory< EOClass >"
|
||
\fBEO\fP Factory.
|
||
|
||
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
|
||
.PP
|
||
Definition at line 42 of file eoFactory.h.
|
||
.SH "Member Function Documentation"
|
||
.PP
|
||
.SS "template<class EOClass> virtual EOClass* \fBeoFactory\fP< EOClass >::make (std::istream & _is)\fC [pure virtual]\fP"
|
||
.PP
|
||
Another factory methods: creates an object from an std::istream, reading from it whatever is needed to create the object.
|
||
.PP
|
||
Usually, the format for the std::istream will be\\ objectType parameter1 parameter2 ... parametern\\
|
||
.PP
|
||
Implemented in \fBeoOpSelMason< eoClass >\fP, \fBeoSelectFactory< EOT >\fP, and \fBeoBitOpFactory< EOT >\fP.
|
||
.PP
|
||
Referenced by eoBitOpFactory< EOT >::make().
|
||
|
||
.SH "Author"
|
||
.PP
|
||
Generated automatically by Doxygen for EO from the source code.
|