#include <iostream>
#include <fipa_acl/conversation_monitor.h>
#include <getopt.h>
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 7 of file main.cpp.
9 std::string protocolfile;
15 printf(
"usage: %s -f <protocolfile>\n", argv[0]);
19 while( (opt = getopt(argc, argv,
"f:hx")) != -1)
24 protocolfile = std::string(optarg);
31 printf(
"usage: %s -f <protocolfile>\n", argv[0]);
37 printf(
"Load specification of: %s\n", protocolfile.c_str());
43 printf(
"%s", statemachine.
toXML().c_str());
45 printf(
"%s", statemachine.
toString().c_str());
47 }
catch(std::runtime_error& e)
49 printf(
"Runtime error: %s\n", e.what());
std::string toXML() const
implements a XML parser that generates a state machine from a given spec. file; uses the tinyXML libr...
std::string toString() const
StateMachine loadSpecification(const std::string &file)