26 #ifndef _CALGORITHMCOLLECTION
27 #define _CALGORITHMCOLLECTION
28 #include "libMRML/include/uses-declarations.h"
31 #include "libMRML/include/CAlgorithm.h"
32 #ifdef LINK_DYNAMICALLY
33 #include "libMRML/include/CStaticQueryFactory.h"
35 #include "libMRML/include/CDynamicQueryFactory.h"
37 #include "libMRML/include/CXMLElement.h"
72 CContent::const_iterator
begin()
const;
74 CContent::const_iterator
end()
const;
84 void startAlgorithmConstruction(
CAlgorithm* inAlgorithm);
126 string toXML(
bool inIsPrivate=
false)
const;
string toXML(bool inIsPrivate=false) const
for shandshake and for state output
CAlgorithm * makeAlgorithmByType(const string &inType) const
Creates a new algorithm for agiven type by cloning what you would get with getAlgorithm.
The algorithm collection is kind of a factory for CQuery structures:
Definition: CAlgorithmCollection.h:58
CAlgorithm & getAlgorithmByType(const string &inType) const
Algorithm for TYPE => permits configuring probably only the pointered version is interesting.
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
CAlgorithm * getDefaultAlgorithm() const
A default algorithm for the default session This algorithm will be given by the ONE ALGORITHM which h...
CAlgorithm * makeDefaultAlgorithm() const
creates a copy of what you'd get with the above function get...
map< string, CAlgorithm * > CContent
The content of an algorithm collection is a map between algorihm type and a pointer to the correspond...
Definition: CAlgorithmCollection.h:66
CContent::const_iterator begin() const
for being able to read all the content
An algorithm is a CXMLElement which is linked to a CSessionManager together they are able to build CQ...
Definition: CAlgorithm.h:43
~CAlgorithmCollection()
Destructor destroys all members of CContent.
The Query manager for Queries on inverted Files.
Definition: CQuery.h:73
A factory for base types of algorithms.
Definition: CStaticQueryFactory.h:38
CContent::const_iterator end() const
for being able to read all the content
CXMLElement * toXMLElement() const
for get-algorithms: the output is an CXMLElement, containing an algorithm-list element.
This is in fact a collection of collections.
Definition: CAccessorAdminCollection.h:39
CAlgorithm * mAlgorithmInConstruction
as the name sais
Definition: CAlgorithmCollection.h:61
void addAlgorithm(CAlgorithm *inAlgorithm)
adding a completely built algorithm XML document tree
CQuery * makeQuery(const string &inBaseType, CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm, CStaticQueryFactory &inFactory)
handed through to the CStaticQueryFactory
bool containsAlgorithmByType(const string &inType) const
Algorithm for TYPE => permits configuring probably only the pointered version is interesting.
CAlgorithmCollection(string inConfigFileName)
Constructor.
CXMLElement * getAlgorithmList(const CXMLElement &inGetAlgorithms) const
For handshaking: This makes you a list of all algorithms which work with a given query paradigm...
CAlgorithm * getAlgorithmInConstruction()
returns a pointer to the algorithm in construction