intrig / xenon

The Intrig Message Decoder
MIT License
1 stars 6 forks source link

Added Functions #11

Closed intrig closed 7 years ago

intrig commented 7 years ago

Improved Record Access

xenon::spec_server() now accepts a path in its constructor, not just a file like before. And xenon::get_record() now accepts paths to records just like the web interface. For example:

    xenon::spec_server s("~/wythe/xenon/xddl");
    auto rec = xenon::get_record(s, "3GPP/TS-36.331/DL-DCCH-Message");

You can see a complete program in the examples/tutorial.cpp file.

New search functions

The xenon::find() function has been removed and instead xenon::find_first() should be used. The original name was confusing with the std version of find since its functionality is not really the same.

The xenon::for_each_path() function can be used for performing an action over all nodes in a message that matches a path.

More examples to come!

Flattened xenon/tools directory

The tools that consist of only one source file are no longer in a directory of there own.