Changeset 12087


Ignore:
Timestamp:
09/13/11 14:40:54 (13 years ago)
Author:
tbretz
Message:
Added the PrintHelp function which is supposed to print state and command informations of a state machine.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Main.h

    r11945 r12087  
    3232
    3333        conf.AddOptions(config);
     34    }
     35
     36    template<class T>
     37    void PrintHelp()
     38    {
     39        Dim::Setup();
     40
     41        ofstream fout("/dev/null");
     42
     43        T io_service(fout);
     44
     45        io_service.PrintListOfStates(cout);
     46        cout << "\nList of available commands:\n\n";
     47        io_service.PrintListOfEvents(cout);
     48        cout << "\n";
    3449    }
    3550
Note: See TracChangeset for help on using the changeset viewer.