//========================================================================== // SAXPARSER_NONE.CC - // part of OMNeT++ // //========================================================================== /*--------------------------------------------------------------* Copyright (C) 2002-2017 Andras Varga Copyright (C) 2006-2017 OpenSim Ltd. This file is distributed WITHOUT ANY WARRANTY. See the file `license' for details on this and other legal matters. *--------------------------------------------------------------*/ #include #include #include #include "errorstore.h" #include "saxparser.h" namespace omnetpp { namespace nedxml { SAXParser::SAXParser() { saxHandler = nullptr; currentParser = nullptr; } void SAXParser::setHandler(SAXHandler *sh) { saxHandler = sh; sh->setParser(this); } bool SAXParser::parse(const char *filename) { return doParse(filename, nullptr); } bool SAXParser::parseContent(const char *content) { return doParse(nullptr, content); } bool SAXParser::doParse(const char *filename, const char *content) { strcpy(errorText, "XML input is not supported: this copy of OMNeT++ was " "compiled without an XML parser (libXML or Expat)"); return false; } int SAXParser::getCurrentLineNumber() { return 0; } } // namespace nedxml } // namespace omnetpp