Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 29 of file test_tagrules.cxx.
35 tagXY: ["tagX%d"%n, "tagY%d"%n], 36 "is-tagged\\d": "was-tagged", 37 ["is-tagged%d"%n]: "was-tagged%d"%n, 39 // Output traces are tagged based on a map from an 40 // input to one or more output tags. 42 intagA: "outtagA%d"%n, 43 intagB: ["outtagB%d"%n, "outtagBB%d"%n], 45 } for n in std.range(0,5) 58 for (
int ind=2; ind<
argc; ++ind) {
59 tags.insert(
argv[ind]);
65 tags.insert(
"intagA");
66 tags.insert(
"dontmatchme");
67 tags.insert(
"is-tagged2");
71 for (
auto jport : cfg) {
72 for (
auto cat : jport.getMemberNames()) {
73 auto jrules = jport[cat];
74 auto rs = convert<tagrules::ruleset_t>(jrules);
76 std::cout <<
"port:"<<iport<<
", categ:\""<<cat<<
"\": have tags:[";
79 std::cout << comma <<
t;
82 std::cout <<
"], got tags: [";
84 for (
auto t: newtags) {
85 std::cout << comma <<
t;
88 std::cout <<
"], with rules:" <<
std::endl;
std::unordered_set< tag_t > tagset_t
tagset_t transform(const tagset_t &ts, const ruleset_t &rs, bool all_rules=true)
Json::Value Configuration
QTextStream & endl(QTextStream &s)
def load(filename, jpath="depos")