#include <iostream>
#include <fipa_acl/conversation_monitor.h>
#include <getopt.h>
#include <cstdlib>
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 8 of file main.cpp.
10 std::string protocolfile;
16 printf(
"usage: %s -f <protocolfile>\n", argv[0]);
20 while( (opt = getopt(argc, argv,
"f:hx")) != -1)
25 protocolfile = std::string(optarg);
32 printf(
"usage: %s -f <protocolfile>\n", argv[0]);
38 printf(
"Load specification of: %s\n", protocolfile.c_str());
44 printf(
"%s", statemachine.
toXML().c_str());
46 printf(
"%s", statemachine.
toString().c_str());
48 }
catch(std::runtime_error& e)
50 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)