The Document class is a specialized XML DOM for XDDL documents.
Typically, users will create a Document from an XDDL file, and reference to this document is then used to create a Message. These are usually the only methods invoked.
Any parse errors in the document will result in an exception derived from std::exception.
| Constructors |
| ||||||
| Methods |
|
The example below shows a complete program that loads and XDDL document, creates a message, and then displays the decode in XML.
#include <IT/Xenon.h>
using namespace std;
using namespace IT;
int main(int argc, char* argv[])
{
try {
Document doc("C:\\Program Files\\Intrig Data Monitor\\xddl\\icd.xddl");
Message msg(doc);
msg = BitString("030001547B0DA16006");
cout << msg.xml();
} catch (exception & e)
{
cout << e.what();
}
return 0;
}