Last change
on this file since 115 was
81,
checked in by rosiere, 17 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
761 bytes
|
Line | |
---|
1 | #ifndef Environment_RamLock_H |
---|
2 | #define Environment_RamLock_H |
---|
3 | |
---|
4 | #include <stdint.h> |
---|
5 | #include <iostream> |
---|
6 | |
---|
7 | #include "RamLock_Parameters.h" |
---|
8 | |
---|
9 | namespace environment { |
---|
10 | namespace ramlock { |
---|
11 | |
---|
12 | #define UNLOCK false |
---|
13 | #define LOCK true |
---|
14 | |
---|
15 | class RamLock |
---|
16 | { |
---|
17 | // field |
---|
18 | private : std::string _name; |
---|
19 | private : Parameters * _param; |
---|
20 | private : bool * _lock; |
---|
21 | |
---|
22 | // method |
---|
23 | public : RamLock (std::string name, |
---|
24 | Parameters * param); |
---|
25 | public : ~RamLock (void); |
---|
26 | |
---|
27 | //public : bool test (uint32_t num_lock); |
---|
28 | public : void reset (void); |
---|
29 | public : bool read (uint32_t num_lock); |
---|
30 | public : bool write (uint32_t num_lock); |
---|
31 | |
---|
32 | public : friend std::ostream& operator<< (std::ostream& output, environment::ramlock::RamLock & x); |
---|
33 | }; |
---|
34 | |
---|
35 | }; |
---|
36 | }; |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.