sigx++
2.0.1
Main Page
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
sigx
signal_source_base.h
Go to the documentation of this file.
1
#ifndef _SIGX_SIGNAL_SOURCE_BASE_HPP_
2
#define _SIGX_SIGNAL_SOURCE_BASE_HPP_
3
4
/*
5
* Copyright 2005 Klaus Triendl
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
16
*
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the Free
19
* Software Foundation, 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
21
*/
22
23
#include <sigxconfig.h>
24
#include <
sigx/operator_new.h
>
25
26
27
namespace
sigx
28
{
29
38
class
signal_source_base
:
public
operator_new
39
{
40
public
:
42
typedef
void (*
hook
)();
43
44
45
protected
:
46
hook
m_getter
;
47
48
49
signal_source_base
(
hook
_A_getter):
50
m_getter
(_A_getter)
51
{}
52
53
public
:
54
virtual
~signal_source_base
()
55
{
56
m_getter
= 0;
57
}
58
59
hook
getter
()
const
{
return
m_getter
; }
60
};
61
62
63
typedef
signal_source_base*
signal_source_ptr
;
64
65
66
}
// namespace sigx
67
68
69
#endif // _SIGX_SIGNAL_SOURCE_BASE_HPP_
Generated on Mon Oct 1 2012 16:04:09 for sigx++ by
1.8.1.2