~frankencode/drycore/trunk

« back to all changes in this revision

Viewing changes to dry/ExitEvent.hpp

  • Committer: Frank Mertens
  • Date: 2013-02-27 18:43:50 UTC
  • Revision ID: frank@cyblogic.de-20130227184350-ypu14rj5e2r8gwqz
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 /*
 
2
  * Copyright (C) 2007-2013 Frank Mertens.
 
3
  *
 
4
  * This program is free software; you can redistribute it and/or
 
5
  * modify it under the terms of the GNU General Public License
 
6
  * as published by the Free Software Foundation; either version
 
7
  * 2 of the License, or (at your option) any later version.
 
8
  */
 
9
#ifndef DRY_EXITEVENT_HPP
 
10
#define DRY_EXITEVENT_HPP
 
11
 
 
12
#include "Singleton.hpp"
 
13
#include "Event.hpp"
 
14
#include "Process.hpp"
 
15
 
 
16
namespace dry
 
17
{
 
18
 
 
19
class ExitEvent: public Event, public Singleton<ExitEvent>
 
20
{
 
21
protected:
 
22
        friend class Singleton<ExitEvent>;
 
23
 
 
24
        ExitEvent();
 
25
        ~ExitEvent();
 
26
 
 
27
        pid_t pid_;
 
28
};
 
29
 
 
30
inline ExitEvent *exitEvent() { return ExitEvent::instance(); }
 
31
 
 
32
} // namespace dry
 
33
 
 
34
#endif // DRY_EXITEVENT_HPP