1: typedef struct _varval varval; 2: 3: class Cgi 4: { 5: int _method; 6: int _nbPairs; 7: varval* _pairs; 8: 9: public: 10: enum cgi_method { GET, POST }; 11: 12: Cgi(); 13: virtual ~Cgi(); 14: 15: int method() const; 16: int exist() const; 17: int exist(const char*) const; 18: char* value(const char*); 19: void dump(); 20: 21: private: 22: void parseInput(char*); 23: };