Last change
on this file was
167,
checked in by (none), 14 years ago
|
Simeo: added final project and also older proof of concept code.
We used Git for version control, so look at the Git repo
in SIMEO/Simeo/ for more info.
|
File size:
525 bytes
|
Line | |
---|
1 | #ifndef CHANNEL_H |
---|
2 | #define CHANNEL_H |
---|
3 | |
---|
4 | #include <mpi.h> |
---|
5 | #include <sys/types.h> |
---|
6 | #include "constants.h" |
---|
7 | |
---|
8 | typedef struct { |
---|
9 | int tag; |
---|
10 | int type; |
---|
11 | int orient; |
---|
12 | int dest; |
---|
13 | float minAngle; |
---|
14 | float maxAngle; |
---|
15 | float angle; |
---|
16 | } channelData; |
---|
17 | |
---|
18 | typedef MPI_Datatype channel_datatype_t; |
---|
19 | |
---|
20 | class Channel |
---|
21 | { |
---|
22 | |
---|
23 | public: |
---|
24 | Channel(); |
---|
25 | ~Channel(); |
---|
26 | |
---|
27 | virtual int read(void *buf, channel_datatype_t datatype, size_t count); |
---|
28 | virtual int write(const void *buf, channel_datatype_t datatype, size_t count); |
---|
29 | virtual int available(); |
---|
30 | |
---|
31 | }; |
---|
32 | |
---|
33 | #endif // CHANNEL_H |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.