OpenCurves
0.9
|
Loads the XML specification files for RealTimeSource
connections.
More...
#include <realtimesourceloader.h>
Public Member Functions | |
RealTimeCommSpec * | load (const QString &fileName, QString *error=nullptr, int *errorLine=nullptr, int *errorColumn=nullptr) |
Attempt to load a real time source file. More... | |
RealTimeCommSpec * | parse (const QString &xmlString, QString *error=nullptr, int *errorLine=nullptr, int *errorColumn=nullptr) |
Attempt to parse an XML string for a real time source specification. More... | |
Loads the XML specification files for RealTimeSource
connections.
A description of the supported format can be found here.
RealTimeCommSpec* RealTimeSourceLoader::load | ( | const QString & | fileName, |
QString * | error = nullptr , |
||
int * | errorLine = nullptr , |
||
int * | errorColumn = nullptr |
||
) |
Attempt to load a real time source file.
fileName | The name of the file to load. |
error | Used to return an error message (if provided). |
errorLine | Used to indicate the line number for the error (if provided). |
errorColumn | Used to indicate the column number for the error (if provided). |
RealTimeCommSpec
loaded from the file on success, null on failure. RealTimeCommSpec* RealTimeSourceLoader::parse | ( | const QString & | xmlString, |
QString * | error = nullptr , |
||
int * | errorLine = nullptr , |
||
int * | errorColumn = nullptr |
||
) |
Attempt to parse an XML string for a real time source specification.
xmlString | XML formated text to parse. |
error | Used to return an error message (if provided). |
errorLine | Used to indicate the line number for the error (if provided). |
errorColumn | Used to indicate the column number for the error (if provided). |
RealTimeCommSpec
on success, null on failure.