|
Last change
on this file since 18 was
17,
checked in by buchmann, 17 years ago
|
|
Fix :
- add missing system header includes
|
|
File size:
1.5 KB
|
| Rev | Line | |
|---|
| [1] | 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" |
|---|
| [17] | 16 | #include<iostream> |
|---|
| [1] | 17 | |
|---|
| 18 | namespace sc_core { |
|---|
| 19 | |
|---|
| 20 | class sc_event { |
|---|
| 21 | public : typedef enum { POS, NEG, VAL } flag_t; |
|---|
| 22 | private: |
|---|
| 23 | const sc_interface &interface; |
|---|
| 24 | flag_t flag; |
|---|
| 25 | public: |
|---|
| 26 | bool pos () const; |
|---|
| 27 | sc_event (const sc_interface &, flag_t); |
|---|
| 28 | ~sc_event (); |
|---|
| 29 | |
|---|
| 30 | // methods |
|---|
| 31 | const sc_interface& get_interface() const { return interface;}; // CASC specific |
|---|
| 32 | flag_t get_flag () const { return flag;}; // CASC specific |
|---|
| 33 | |
|---|
| 34 | // operators |
|---|
| 35 | |
|---|
| 36 | friend std::ostream& operator << (std::ostream &, const sc_event &); |
|---|
| 37 | |
|---|
| 38 | sc_event (); |
|---|
| 39 | /* |
|---|
| 40 | // LRM |
|---|
| 41 | sc_event (); |
|---|
| 42 | private: |
|---|
| 43 | // disabled |
|---|
| 44 | sc_event (const sc_event &); |
|---|
| 45 | sc_event& operator = (const sc_event&); |
|---|
| 46 | */ |
|---|
| 47 | }; |
|---|
| 48 | |
|---|
| 49 | } // end of sc_core namespace |
|---|
| 50 | |
|---|
| 51 | #endif /* __SC_EVENT_H__ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.