Tag: cws_src680_dba204a
User: fs      
Date: 2006/07/13 00:55:23

Modified:
   dba/connectivity/inc/connectivity/sqlparse.hxx

Log:
 RESYNC: (1.18-1.19); FILE MERGED

File Changes:

Directory: /dba/connectivity/inc/connectivity/
==============================================

File [changed]: sqlparse.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/sqlparse.hxx?r1=1.18.100.1&r2=1.18.100.2
Delta lines:  +10 -4
--------------------
--- sqlparse.hxx        22 May 2006 10:50:00 -0000      1.18.100.1
+++ sqlparse.hxx        13 Jul 2006 07:55:21 -0000      1.18.100.2
@@ -65,6 +65,8 @@
 #include "connectivity/IParseContext.hxx"
 #endif
 
+#include <map>
+
 // forward declarations
 namespace com
 {
@@ -135,11 +137,13 @@
        {
                friend class OSQLParseNode;
                friend class OSQLInternalNode;
-               friend struct OSQLParseNode::SQLParseNodeParameter;
+               friend struct SQLParseNodeParameter;
 
        private:
+        typedef ::std::map< sal_uInt32, OSQLParseNode::Rule >   RuleIDMap;
        //      static parts for parsers
                static sal_uInt32                       
s_nRuleIDs[OSQLParseNode::rule_count + 1];
+        static RuleIDMap            s_aReverseRuleIDLookup;
                static OParseContext            s_aDefaultContext;
 
        //      parts controled by mutex
@@ -211,6 +215,8 @@
                // (0, falls nicht gefunden). Die Suche nach der ID aufgrund 
eines Strings ist
                // extrem ineffizient (sequentielle Suche nach ::rtl::OUString)!
                static sal_uInt32 StrToRuleID(const ::rtl::OString & rValue);
+
+        static OSQLParseNode::Rule RuleIDToRule( sal_uInt32 _nRule );
 
                // RuleId mit enum, wesentlich effizienter
                static sal_uInt32 RuleID(OSQLParseNode::Rule eRule);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to