skeleton for lab1
Dependencies: AvailableMemory mbed-rtos mbed
Fork of helloaabbc by
Parser.h@1:55e99f6e2aa5, 2014-04-04 (annotated)
- Committer:
- mbed36372
- Date:
- Fri Apr 04 21:31:22 2014 +0000
- Revision:
- 1:55e99f6e2aa5
- Parent:
- 0:1c8f2727e9f5
SP14_lab1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
y7jin | 0:1c8f2727e9f5 | 1 | #ifndef _PARSER_H |
y7jin | 0:1c8f2727e9f5 | 2 | #define _PARSER_H |
y7jin | 0:1c8f2727e9f5 | 3 | |
y7jin | 0:1c8f2727e9f5 | 4 | #include "mbed.h" |
y7jin | 0:1c8f2727e9f5 | 5 | #include "SDF.h" |
y7jin | 0:1c8f2727e9f5 | 6 | #include "RingBuffer.h" |
y7jin | 0:1c8f2727e9f5 | 7 | |
y7jin | 0:1c8f2727e9f5 | 8 | using namespace std; |
y7jin | 0:1c8f2727e9f5 | 9 | class SDFG; |
y7jin | 0:1c8f2727e9f5 | 10 | class Parser{ |
y7jin | 0:1c8f2727e9f5 | 11 | public: |
y7jin | 0:1c8f2727e9f5 | 12 | /*parse sdf configuration file, set the values for sdfg*/ |
y7jin | 0:1c8f2727e9f5 | 13 | static void parseSDFG(char *path, SDFG *sdfg); |
y7jin | 0:1c8f2727e9f5 | 14 | /*parse input file to populate input buffer*/ |
y7jin | 0:1c8f2727e9f5 | 15 | static void parseInput(char *path, RingBuffer *buf); |
y7jin | 0:1c8f2727e9f5 | 16 | }; |
y7jin | 0:1c8f2727e9f5 | 17 | |
y7jin | 0:1c8f2727e9f5 | 18 | #endif |