User: obo     
Date: 2006/07/10 07:17:02

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

Log:
 INTEGRATION: CWS qiq (1.18.104); FILE MERGED
 2006/05/10 10:19:40 fs 1.18.104.1: added conversion from Scanner's rule ID to 
Rule enum value (which allows to implement SQLNode::getKnownRuleID)

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&r2=1.19
Delta lines:  +7 -1
-------------------
--- sqlparse.hxx        8 Sep 2005 05:02:35 -0000       1.18
+++ sqlparse.hxx        10 Jul 2006 14:16:59 -0000      1.19
@@ -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
@@ -205,6 +209,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