Go to the documentation of this file.
28 void usage( const std::string& msg= "") {
29 std::cerr << "waut2dot --- convert omega automata to DOT format (" << faudes::VersionString() << ")" << std::endl;
31 std::cerr << "error: " << msg << std::endl;
32 std::cerr << std::endl;
35 std::cerr << std::endl;
36 std::cerr << "usage:" << std::endl;
37 std::cerr << " waut2dot [-?] <aut-in> [<dot-out>]" << std::endl;
38 std::cerr << std::endl;
39 std::cerr << "with:" << std::endl;
40 std::cerr << " <aut-in> main input file" << std::endl;
41 std::cerr << " <dot-out> main output file" << std::endl;
42 std::cerr << std::endl;
43 std::cerr << "note: <dot-out> defaults <aut-in> with suffix substituted to \"dot\"" << std::endl;
44 std::cerr << "note: the current implementation is restricted to Rabin automata" << std::endl;
45 std::cerr << std::endl;
50 int main( int argc, char *argv[]) {
57 for( int i=1; i<argc; i++) {
58 std::string option(argv[i]);
60 if((option== "-?") || (option== "--help")) {
65 if(option.c_str()[0]== '-') {
66 usage( "unknown option "+ option);
80 usage( "no more than two arguments must be specified" );
85 usage( "no input file specified");
89 std::string basename = autin;
90 if(basename.rfind( ".gen") < basename.size())
91 basename.resize(basename.rfind( ".gen"));
92 std::string dotout = basename+ ".dot";
virtual void DotWrite(const std::string &rFileName) const
std::string VersionString()
int main(int argc, char *argv[])
void usage(const std::string &msg="")
libFAUDES 2.33h
--- 2025.06.18
--- c++ api documentaion by doxygen
|