Ignore:
Timestamp:
06/10/11 10:54:53 (13 years ago)
Author:
tbretz
Message:
Added some debug messages to see when commands get posted and/or handled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/StateMachineImp.cc

    r10873 r10977  
    248248    const string fmt = evt->GetFormat();
    249249
    250     // Convert the user enetered data according to the format string
     250    // Convert the user entered data according to the format string
    251251    // into a data block which will be attached to the event
    252252    const Converter conv(lout, fmt, false);
     
    311311
    312312    if (IsRunning())
    313         PushEvent(new Event(evt, ptr, siz));
     313    {
     314        Event *event = new Event(evt, ptr, siz);
     315        Debug("Posted: "+event->GetName());
     316        PushEvent(event);
     317    }
    314318    else
    315319    {
     
    915919bool StateMachineImp::HandleEvent(const EventImp &evt)
    916920{
     921    Debug("Handle: "+evt.GetName());
     922
    917923    // Get the new state from the command
    918924    const int commandstate = evt.GetTargetState();
Note: See TracChangeset for help on using the changeset viewer.