/****************************************************************************/ // MGRMISC.H v1.1 - 05 11 1990 /****************************************************************************/ /* */ /* Copyright (c) 1989-1993 Bernhard Strassl */ /* Institute for Applied Computer Science and Information Systems */ /* University of Vienna, Austria */ /* */ /* See file COPYRIGHT in this directory for details. If this file is */ /* missing please mail to bernhard@ani.univie.ac.at */ /****************************************************************************/ #ifndef _CB_MGRMISC_INCLUDED #define _CB_MGRMISC_INCLUDED 1 // misc. classes supporting SqlMgr #include #include class SqlParser { friend class SqlMgr; friend class SqlObjectMgr; friend void testParser(); char tokbuf[CB_MAX_TOKENSIZE]; int tokndx; bool indP; BindDescr* inputs; BindDescr* outputs; BindDescr* all; SqlParser(); ~SqlParser() { delete inputs, outputs; } char* parse(char*); int getType(); int getLength(); public: BindDescr* getInputs() { BindDescr* rd = inputs; inputs = new BindDescr; return(rd); } BindDescr* getOutputs() { BindDescr* rd = outputs; outputs = new BindDescr; return(rd); } BindDescr* getAll() { BindDescr* rd = all; all = new BindDescr; return(rd); } }; #endif