|
ProteoWizard
|
#include "pwiz/utility/misc/unit.hpp"#include "SAXParser.hpp"#include "pwiz/utility/misc/Std.hpp"#include "pwiz/utility/misc/Filesystem.hpp"#include <cstring>Go to the source code of this file.
Classes | |
| struct | PrintAttribute |
| class | PrintEventHandler |
| struct | First |
| struct | Second |
| struct | Fifth |
| struct | Root |
| class | FirstHandler |
| class | SecondHandler |
| class | FifthHandler |
| class | RootHandler |
| class | AnotherRootHandler |
| struct | NestedHandler |
Functions | |
| void | demo () |
| void | readAttribute (const Handler::Attributes &attributes, const string &attributeName, string &result) |
| void | test () |
| void | testNoAutoUnescape () |
| void | testDone () |
| void | testBadXML () |
| void | testNested () |
| void | testRootElement () |
| void | testDecoding () |
| void | testSaxParserString () |
| int | main (int argc, char *argv[]) |
Variables | |
| ostream * | os_ |
| const char * | sampleXML |
| void demo | ( | ) |
Definition at line 120 of file SAXParserTest.cpp.
References os_, pwiz::msdata::id::parse(), and sampleXML.
Referenced by main().
| void readAttribute | ( | const Handler::Attributes & | attributes, |
| const string & | attributeName, | ||
| string & | result | ||
| ) |
Definition at line 182 of file SAXParserTest.cpp.
References pwiz::minimxml::SAXParser::Handler::Attributes::end(), and pwiz::minimxml::SAXParser::Handler::Attributes::find().
Referenced by RootHandler::startElement(), FirstHandler::startElement(), and SecondHandler::startElement().
| void test | ( | ) |
Definition at line 367 of file SAXParserTest.cpp.
References First::escaped_attribute, Root::fifth, Root::first, Fifth::leeloo, Fifth::mr_zorg, os_, Root::param, Second::param2, Second::param3, pwiz::msdata::id::parse(), sampleXML, Root::second, First::text, Second::text, and unit_assert_operator_equal.
Referenced by main().
| void testNoAutoUnescape | ( | ) |
Definition at line 405 of file SAXParserTest.cpp.
References First::escaped_attribute, Root::first, os_, Root::param, Second::param2, Second::param3, pwiz::msdata::id::parse(), sampleXML, Root::second, First::text, Second::text, and unit_assert_operator_equal.
Referenced by main().
| void testDone | ( | ) |
Definition at line 458 of file SAXParserTest.cpp.
References os_, pwiz::msdata::id::parse(), sampleXML, and unit_assert_operator_equal.
Referenced by main().
| void testBadXML | ( | ) |
Definition at line 475 of file SAXParserTest.cpp.
References os_, and pwiz::msdata::id::parse().
Referenced by main().
| void testNested | ( | ) |
Definition at line 510 of file SAXParserTest.cpp.
References NestedHandler::count, os_, pwiz::msdata::id::parse(), and unit_assert_operator_equal.
Referenced by main().
| void testRootElement | ( | ) |
Definition at line 523 of file SAXParserTest.cpp.
References os_, sampleXML, unit_assert_operator_equal, unit_assert_throws, pwiz::minimxml::xml_root_element(), and pwiz::minimxml::xml_root_element_from_file().
Referenced by main().
| void testDecoding | ( | ) |
Definition at line 544 of file SAXParserTest.cpp.
References pwiz::minimxml::decode_xml_id(), pwiz::minimxml::decode_xml_id_copy(), and unit_assert_operator_equal.
Referenced by main().
| void testSaxParserString | ( | ) |
Definition at line 559 of file SAXParserTest.cpp.
References pwiz::minimxml::SAXParser::saxstring::c_str(), pwiz::minimxml::SAXParser::saxstring::data(), pwiz::minimxml::SAXParser::saxstring::length(), pwiz::minimxml::SAXParser::saxstring::trim_lead_ws(), pwiz::minimxml::SAXParser::saxstring::trim_trail_ws(), and unit_assert_operator_equal.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 585 of file SAXParserTest.cpp.
References demo(), os_, test(), TEST_EPILOG, TEST_FAILED, TEST_PROLOG, testBadXML(), testDecoding(), testDone(), testNested(), testNoAutoUnescape(), testRootElement(), and testSaxParserString().
| ostream* os_ |
Definition at line 36 of file SAXParserTest.cpp.
Referenced by PrintEventHandler::characters(), demo(), PrintEventHandler::endElement(), main(), PrintAttribute::operator()(), PrintEventHandler::processingInstruction(), PrintEventHandler::startElement(), test(), testBadXML(), testDone(), testNested(), testNoAutoUnescape(), and testRootElement().
| const char* sampleXML |
Definition at line 39 of file SAXParserTest.cpp.
Referenced by demo(), test(), testDone(), testNoAutoUnescape(), and testRootElement().