26 #include <boost/test/unit_test.hpp> 31 BOOST_AUTO_TEST_SUITE(ts_tParser)
35 BOOST_SPIRIT_NAMESPACE::parse_info<> info;
38 icl_core::String input =
"file:///path/to/file/data.abc#anchor123?foo=bar&test=me";
42 BOOST_CHECK_EQUAL(scheme.
specifier,
"/path/to/file/data.abc");
43 BOOST_CHECK_EQUAL(scheme.
anchor,
"anchor123");
44 BOOST_CHECK_EQUAL(scheme.
queries[0].name,
"foo");
45 BOOST_CHECK_EQUAL(scheme.
queries[0].value,
"bar");
46 BOOST_CHECK_EQUAL(scheme.
queries[1].name,
"test");
47 BOOST_CHECK_EQUAL(scheme.
queries[1].value,
"me");
52 std::list<icl_core::String> input_list;
54 input_list.push_back(
"file:///path/to/my_file/data.tof");
55 input_list.push_back(
"file:///path/to/my file/my data.tof");
56 input_list.push_back(
"file:///path/to/file/data.tof?offset=2000&skip_frames=2");
59 input_list.push_back(
"raw:///path/to/file/data.tof");
62 input_list.push_back(
"output://video");
65 input_list.push_back(
"camera://dragonfly1?guid=0123456");
66 input_list.push_back(
"camera://vision_a3?ip=192.168.95.123#&port=1919");
69 input_list.push_back(
"/path/to/file/data.tof");
72 input_list.push_back(
"data.tof");
74 std::list<icl_core::String>::iterator iter = input_list.begin();
78 while (iter != input_list.end())
86 BOOST_AUTO_TEST_SUITE_END()
file:///path/file?key=value
bool parseScheme(const String &str)
BOOST_AUTO_TEST_CASE(TestStaticParser)
Contains Interface base classes and base types.
Contains icl_core::SchemeParser.