00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef RESOURCEPOOL_ORACLE_ORACLEBIND_HH
00025 #define RESOURCEPOOL_ORACLE_ORACLEBIND_HH
00026
00027 #ifndef INCLUDED_GC_PTR_HH
00028 #include "mm/gc_ptr.hh"
00029 #endif
00030
00031 #ifndef RESOURCEPOOL_ORACLE_ORACLETYPE_HH
00032 #include "oracleType.hh"
00033 #endif
00034
00035 #include <string>
00036 #include <sstream>
00037
00038 #ifndef ORACLE_INCLUDE_FLEXLEXER
00039 #undef yyFlexLexer
00040 #define yyFlexLexer oracle_bindFlexLexer
00041 #include <FlexLexer.h>
00042 #endif
00043
00044 namespace fatalmind {
00045
00046 class oracle_bind: public oracle_bindFlexLexer {
00047 public:
00048 oracle_bind(const std::string& _sql, std::string& sqlout);
00049 private:
00050 int yylex ();
00051
00052 int _arg_no;
00053 std::ostringstream _os;
00054 std::istringstream _is;
00055 std::string& _sqlout;
00056 };
00057 }
00058
00059 extern "C" {
00060 inline int oracle_bindwrap() {
00061 return 1;
00062 }
00063 }
00064 #endif