1:
2:
3: /*************
4: * *
5: * SENTINEL *
6: * *
7: *************/
8:
9:
10: #ifndef WWWI_MIND_REQUEST_H
11: #define WWWI_MIND_REQUEST_H
12:
13:
14: /**********************
15: * *
16: * COMPILER INCLUDES *
17: * *
18: **********************/
19:
20:
21: /*********************
22: * *
23: * PROJECT INCLUDES *
24: * *
25: *********************/
26:
27:
28: #include "question.h"
29:
30:
31: /**********************
32: * *
33: * TYPE DECLARATIONS *
34: * *
35: **********************/
36:
37:
38: /******************
39: * *
40: * CLASS REQUEST *
41: * *
42: ******************/
43:
44:
45: class Request {
46: public:
47: Request(bool i_bRD, Opcode i_op, QuestionPtr &i_qnpr);
48: inline Opcode GetOpcode(void) const;
49: inline QuestionConstPtr GetQuestion(void) const;
50: inline unsigned short GetQuestionCount(void) const;
51: inline bool GetRD(void) const;
52: ~Request(void);
53:
54: protected:
55: bool m_bRD;
56: Opcode m_op;
57: QuestionPtr m_qnp;
58:
59: };
60: DECL_POINTER_TYPES(Request)
61:
62:
63: /************************
64: * *
65: * FUNCTION PROTOTYPES *
66: * *
67: ************************/
68:
69:
70: ostream& operator<<(ostream& io_smr, RequestConstPtr i_rqpIn);
71: ostream& operator<<(ostream& io_smr, const Request &i_rqrIn);
72:
73:
74: /*********************
75: * *
76: * INLINE FUNCTIONS *
77: * *
78: *********************/
79:
80:
81: #include "request.i"
82:
83:
84: /************
85: * *
86: * THE END *
87: * *
88: ************/
89:
90:
91: #endif
92:
93:
94: