ProLinga-Data Project |
---|
Data — Class used to manage Data connections and process Data Commands.
#include <prolinga/Data.hpp> class PlData { public:PlData (); ~PlData ();void dataOpen (constchar *configFileName,int argc,char ** argv);void dataClose (void );xmlDocPtr executeCommand (constxmlDocPtr dataRequest); ... }; typedef PlData *PlDataPtr;
void PlData::dataOpen (constchar *configFileName,int argc,char ** argv);
This function is called to initialize a connection to the Data environment.
Function PlData::dataClose must be called when access to the Data is no longer needed in order to close all handles and to free memory.
| the name or the Data configuration file. If the argument is set to NULL, the Data default configuration file (etc/prolingadatcfg.xml) will be used. |
| argument passed on to libgda environment, usually argc from main(). It is unclear from the libgda documentation where it is used for. |
| argument passed on to libgda environment, usually argv from main(). It is unclear from the libgda documentation where it is used for. |
void PlData::dataClose (void );
This function is called to close a connection to the Data environment. All handles and allocated memory will be freed.
xmlDocPtr PlData::executeCommand (constxmlDocPtr dataRequest);
This function presents a Data Command to the Data processing engine. The command gets processed and a result returned. The returned XML document needs to be freed manually when it is no longer needed.
Returns : | the Data Command response as a libxml2 XML document. |
<< Part I. ProLinga-Data C++ API | Part II. ProLinga-Data User Guide >> |