Parent Directory | Revision Log
Imported sources, 23/09/2008
1 | #ifndef R4_HEADER_STATE_H_ |
2 | #define R4_HEADER_STATE_H_ |
3 | |
4 | #include "State.h" |
5 | |
6 | namespace PamOffLineSW |
7 | { |
8 | |
9 | class R4_HEADER_State : public PamOffLineSW::State |
10 | { |
11 | public: |
12 | virtual ~R4_HEADER_State(); |
13 | void readInput(char inputbyte); |
14 | static R4_HEADER_State& getInstance(){return instance;} |
15 | |
16 | void initBufferPKT(char* headPKT); |
17 | void deleteBufferPKT(); |
18 | |
19 | private: |
20 | R4_HEADER_State(); |
21 | static R4_HEADER_State instance; |
22 | |
23 | //only the header |
24 | char* headerPKT; |
25 | //the header length |
26 | //LENGTH_HEADER_PKT |
27 | //only the pam packet without header |
28 | char* pamPKT; |
29 | //the packet length |
30 | long int pamPKT_length; |
31 | //where I am |
32 | long int posPamPKT; |
33 | |
34 | bool isPKTGood;//if the packet is all good i.e. if all the cadres used are good |
35 | |
36 | }; |
37 | |
38 | } |
39 | |
40 | #endif /*R4_HEADER_STATE_H_*/ |
ViewVC Help | |
Powered by ViewVC 1.1.23 |