/******************************************************************** // // Gate.cpp: definition of the CGate class. // // kishan@hackorama.com http://www.hackorama.com // // Thu Nov 4 19:56:03 PST 1999 // *********************************************************************/ class CGate { public: //methods [ external interface ] CGate(); CGate( char* posted_data ); virtual ~CGate(); char* gGetValueFor(char* pstrType); void gVerify(); void gLog(char* pstrFilename); void gPrintHeader(); private: //data [ internal ] struct mallocValues{ int numPairs; int maxlengthofType; int maxlengthofValue; }; struct mallocValues* m_memValues; int m_bMemAllocated; char* m_pBuff; char** m_pstrType; char** m_pstrValue; //methods [ internal ] void gCleanUp(); void gCleanOne(char* pstrString); void gMakePairs(); void gGetPost(); void gProcessPost(); void gMemAlloc(struct mallocValues* memValues); void gGetLength(char* pBuff, struct mallocValues* memValues); void gPrintError(int type); };