Show
Ignore:
Timestamp:
01/30/10 13:18:29 (6 months ago)
Author:
trichards
Message:

Refactored the Event framework so that I_Event is created in EventService? instead of EventQueue?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Core/branches/0075_TR_SCRIPTING/Event/I_EventService.hpp

    r3308 r3330  
    4343class I_EventQueue; 
    4444class I_ActionMap; 
     45class I_Event; 
    4546 
    4647/// Event Service. 
     
    6263    /// @{ 
    6364public: 
     65    /// Create an event by name. 
     66    virtual I_Event& createEvent(const std::string& _name) = 0; 
     67 
     68    /// Get an event by name. 
     69    virtual I_Event& getEvent(const std::string& _name) = 0; 
     70 
    6471    /// Get an event queue by name. 
     72    /// There are two special event queues. "default" and "script". 
     73    /// The default event queue is used if I_Event::connect() has a NULL 
     74    /// for the event queue.  The script event queue is used as the default 
     75    /// event queue for scripted actions.  If either of these 
     76    /// event queues are created by either of these use cases, make 
     77    /// sure you process events on those queues, otherwise the queues will 
     78    /// fill up and consume memory. 
    6579    virtual I_EventQueue& getEventQueue(const std::string& _queueName) = 0; 
    6680