Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8148 in orxonox.OLD for trunk/src/lib/event/event_handler.h


Ignore:
Timestamp:
Jun 5, 2006, 12:46:02 PM (19 years ago)
Author:
bensch
Message:

trunk: output of EventListener Nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_handler.h

    r7919 r8148  
    1919
    2020//! The one Event Handler from Orxonox
    21 class EventHandler : public BaseObject {
     21class EventHandler : public BaseObject
     22{
    2223
    23  public:
     24public:
    2425  virtual ~EventHandler();
    2526  /** @returns a Pointer to the only object of this Class */
     
    2930  void setState(elState state);
    3031  /** @returns the current state */
    31   inline elState getState() const { return this->state; };
     32inline elState getState() const { return this->state; };
    3233
    3334  void pushState(elState state);
     
    5253  void debug() const;
    5354
    54  private:
     55  static const std::string& ELStateToString(elState state);
     56  static elState StringToELState(const std::string& stateName);
     57
     58private:
    5559  EventHandler();
    5660
    5761  bool findListener(std::vector<EventListener*>::iterator* it, elState state, int eventType, EventListener* listener);
    5862
    59  private:
     63public:
     64  static const std::string     stateNames[];
     65
     66private:
    6067  static EventHandler*         singletonRef;                    //!< the singleton reference
    6168
Note: See TracChangeset for help on using the changeset viewer.