00001 00002 /* 00003 | Author: Michael Schmidt; 00004 | Gunnar Jehl 00005 | 00006 | ************************* SOFTWARE LICENSE AGREEMENT *********************** 00007 | This source code is published under the BSD License. 00008 | 00009 | See file 'LICENSE.txt' that comes with this distribution or 00010 | http://dbis.informatik.uni-freiburg.de/index.php?project=GCX/license.php 00011 | for the full license agreement. 00012 | 00013 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00014 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00015 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00016 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00017 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00018 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00019 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00020 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00021 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00022 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00023 | POSSIBILITY OF SUCH DAMAGE. 00024 | **************************************************************************** 00025 */ 00026 00035 #include "loader.h" 00036 00043 void saxBeginElement(const char *_tag) { 00044 StreamPreProcessor::getInstance()->processOpeningTag(_tag); 00045 } 00046 00053 void saxBeginEndElement(const char *_tag) { 00054 StreamPreProcessor::getInstance()->processBachelorTag(_tag); 00055 } 00056 00057 #ifdef VALIDATION 00058 00067 void saxEndElement(const char *_tag) { 00068 StreamPreProcessor::getInstance()->processClosingTag(_tag); 00069 } 00070 #else 00071 00080 void saxEndElement() { 00081 StreamPreProcessor::getInstance()->processClosingTag(); 00082 } 00083 #endif // #ifdef VALIDATION 00084 00091 void saxCharacters(const char *_text) { 00092 StreamPreProcessor::getInstance()->processPCData(_text); 00093 } 00094 00101 extern int yyxmllex(); 00102 00103 //extern int yyxmllex_init(); 00104 00111 int saxparse() { 00112 return yyxmllex(); 00113 } 00114 00120 extern int yyxmllex_destroy(); 00121 00129 void destroyLexer() { 00130 #if defined(LINUX) || defined(linux) || defined(_LINUX) || defined(_linux) || defined(__LINUX__) || defined(__linux__) 00131 yyxmllex_destroy(); 00132 #endif 00133 }