Introduction to OOP | Chapter 21: Software Frameworks : | next | previous | audio | real | text |
class Event { public: Event (unsigned int t) : time(t) { } const unsigned int time; virtual void processEvent () = 0; }; class eventComparison { public: bool operator () (event * left, event * right) { return left->time > right->time; } };An event is an action that will take place at a specific time.