|
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 = "<AnotherRoot>The quick brown fox jumps over the lazy dog.</AnotherRoot>\n" |
| void demo | ( | ) |
Definition at line 119 of file SAXParserTest.cpp.
References os_, pwiz::msdata::id::parse(), and sampleXML.
| void readAttribute | ( | const Handler::Attributes & | attributes, |
| const string & | attributeName, | ||
| string & | result | ||
| ) |
Definition at line 181 of file SAXParserTest.cpp.
References pwiz::minimxml::SAXParser::Handler::Attributes::end(), and pwiz::minimxml::SAXParser::Handler::Attributes::find().
Referenced by FirstHandler::startElement(), SecondHandler::startElement(), and RootHandler::startElement().
| void test | ( | ) |
Definition at line 366 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.
| void testNoAutoUnescape | ( | ) |
Definition at line 404 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 457 of file SAXParserTest.cpp.
References os_, pwiz::msdata::id::parse(), sampleXML, and unit_assert_operator_equal.
Referenced by main().
| void testBadXML | ( | ) |
Definition at line 474 of file SAXParserTest.cpp.
References e(), os_, and pwiz::msdata::id::parse().
Referenced by main().
| void testNested | ( | ) |
Definition at line 509 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 522 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 543 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 558 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 584 of file SAXParserTest.cpp.
References demo(), e(), 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.
| const char* sampleXML = "<AnotherRoot>The quick brown fox jumps over the lazy dog.</AnotherRoot>\n" |
Definition at line 39 of file SAXParserTest.cpp.
Referenced by demo(), test(), testDone(), testNoAutoUnescape(), and testRootElement().
1.8.1.1