A unitary test for the XmlConfig class. Needs the files sample1.xml, sample2.xml and sample3.xml. More...
#include "xmlconfig.hpp"
Go to the source code of this file.
Functions | |
void | printHash (cryptoTools::SHAx *hash) |
Prints the output of a hasfunction when given the empty array as a parameter. | |
void | parseAndPrint (std::string path) |
Parses an xml file and outputs its content. | |
int | main (void) |
Tests that XmlConfig works fine by parsing several sample config file and outputing their content. |
A unitary test for the XmlConfig class. Needs the files sample1.xml, sample2.xml and sample3.xml.
Definition in file xmltest.cpp.
int main | ( | void | ) |
Tests that XmlConfig works fine by parsing several sample config file and outputing their content.
The sample files are sample1.xml, sample2.xml and sample3.xml. They have to be in the same folder as the executable file resulting from the compilation of this one.
Definition at line 71 of file xmltest.cpp.
void parseAndPrint | ( | std::string | path | ) |
Parses an xml file and outputs its content.
The integer value fields are just printed on the screen but others have a more complicated treatement:
path | The path to the config file to parse. |
Definition at line 43 of file xmltest.cpp.
void printHash | ( | cryptoTools::SHAx * | hash | ) |
Prints the output of a hasfunction when given the empty array as a parameter.
hash | The hash function to test. |
Definition at line 22 of file xmltest.cpp.