Changeset 11303 for trunk/FACT++


Ignore:
Timestamp:
07/08/11 16:10:45 (13 years ago)
Author:
tbretz
Message:
Added command to print only the currently allowed events.
File:
1 edited

Legend:

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

    r11050 r11303  
    5858        T::PrintGeneralHelp();
    5959        lout << " " << kUnderline << "Specific commands:" << endl;
     60        lout << kBold << "   ac,allowed   " << kReset << "Display a list of all currently allowed commands." << endl;
    6061        lout << kBold << "   st,states    " << kReset << "Display a list of the available states with description." << endl;
    6162        lout << kBold << "   # <text>     " << kReset << "Echo <text> to the output stream" << endl;
     
    8889        if (str=="states" || str=="st")
    8990        {
    90             if (fStateMachine)
    91                 fStateMachine->PrintListOfStates(lout);
     91            fStateMachine->PrintListOfStates(lout);
     92            return true;
     93        }
     94        if (str=="allowed" || str=="ac")
     95        {
     96            lout << endl << kBold << "List of commands allowed in current state:" << endl;
     97            fStateMachine->PrintListOfAllowedEvents(lout);
     98            lout << endl;
    9299            return true;
    93100        }
Note: See TracChangeset for help on using the changeset viewer.