27 #include "../../common/STLUtils.h"
28 #include "../../common/Translator.h"
29 #include "../Exception.h"
42 throw Exception(
TE_TR(
"There is already a function catalog resgistered for the data source type!"));
44 m_fcatalogMap.insert(std::map<std::string, FunctionCatalog*>::value_type(dsType, fcatalog));
A FunctionCatalog can be used to keep track of registered functions.
FunctionCatalog * find(const std::string &dsType)
It finds the function catalog with the given data source type.
V * GetPValue(const std::map< K, V * > &m, const K &k)
It finds for a given key in the map and returns a pointer if something is found or NULL otherwise...
void insert(const std::string &dsType, FunctionCatalog *fcatalog)
It inserts the function catalog associated to the given data source type.
#define TE_TR(message)
It marks a string in order to get translated.
A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source i...
The definition of a function that can be used in a query object.
std::map< std::string, FunctionCatalog * > m_fcatalogMap
Function map: datasource-type -> FunctionCatalog*.
~FunctionCatalogManager()
Destructor.
A FunctionCatalog can be used to keep track of registered functions.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...