Last change
on this file since 56 was
52,
checked in by meunier, 12 years ago
|
Code formatting in all source files.
|
File size:
1.6 KB
|
Line | |
---|
1 | /*------------------------------------------------------------\ |
---|
2 | | | |
---|
3 | | Tool : systemcass | |
---|
4 | | | |
---|
5 | | File : sc_event.h | |
---|
6 | | | |
---|
7 | | Author : Buchmann Richard | |
---|
8 | | | |
---|
9 | | Date : 09_07_2004 | |
---|
10 | | | |
---|
11 | \------------------------------------------------------------*/ |
---|
12 | #ifndef __SC_EVENT_H__ |
---|
13 | #define __SC_EVENT_H__ |
---|
14 | |
---|
15 | #include "sc_fwd.h" |
---|
16 | |
---|
17 | #include <iostream> |
---|
18 | |
---|
19 | namespace sc_core { |
---|
20 | |
---|
21 | class sc_event { |
---|
22 | public : |
---|
23 | typedef enum { POS, NEG, VAL } flag_t; |
---|
24 | |
---|
25 | private: |
---|
26 | const sc_interface & interface; |
---|
27 | flag_t flag; |
---|
28 | |
---|
29 | public: |
---|
30 | bool pos() const; |
---|
31 | sc_event(const sc_interface &, flag_t); |
---|
32 | ~sc_event(); |
---|
33 | |
---|
34 | // methods |
---|
35 | const sc_interface & get_interface() const { |
---|
36 | return interface; |
---|
37 | } // CASC specific |
---|
38 | flag_t get_flag () const { |
---|
39 | return flag; |
---|
40 | } // CASC specific |
---|
41 | |
---|
42 | // operators |
---|
43 | |
---|
44 | friend std::ostream & operator << (std::ostream &, const sc_event &); |
---|
45 | |
---|
46 | sc_event (); |
---|
47 | |
---|
48 | }; |
---|
49 | |
---|
50 | } // end of sc_core namespace |
---|
51 | |
---|
52 | #endif /* __SC_EVENT_H__ */ |
---|
53 | |
---|
54 | /* |
---|
55 | # Local Variables: |
---|
56 | # tab-width: 4; |
---|
57 | # c-basic-offset: 4; |
---|
58 | # c-file-offsets:((innamespace . 0)(inline-open . 0)); |
---|
59 | # indent-tabs-mode: nil; |
---|
60 | # End: |
---|
61 | # |
---|
62 | # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
63 | */ |
---|
64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.