Project

General

Profile

Statistics
| Branch: | Revision:

root / src / nedxml / saxparser_none.cc @ 79bb12dc

History | View | Annotate | Download (1.06 KB)

1
//==========================================================================
2
//   SAXPARSER_NONE.CC -
3
//            part of OMNeT++
4
//
5
//==========================================================================
6

    
7
/*--------------------------------------------------------------*
8
  Copyright (C) 2002-2008 Andras Varga
9
  Copyright (C) 2006-2008 OpenSim Ltd.
10

11
  This file is distributed WITHOUT ANY WARRANTY. See the file
12
  `license' for details on this and other legal matters.
13
*--------------------------------------------------------------*/
14

    
15

    
16
#include <string.h>
17
#include <stdio.h>
18
#include <assert.h>
19
#include "nederror.h"
20
#include "saxparser.h"
21

    
22
USING_NAMESPACE
23

    
24

    
25
SAXParser::SAXParser()
26
{
27
    saxhandler = NULL;
28
}
29

    
30
void SAXParser::setHandler(SAXHandler *sh)
31
{
32
    saxhandler = sh;
33
    sh->setParser(this);
34
}
35

    
36
bool SAXParser::parse(const char *filename)
37
{
38
    strcpy(errortext, "XML input is not supported: this copy of NEDXML was "
39
                      "compiled without an XML parser (libXML or Expat)");
40
    return false;
41
}
42

    
43
int SAXParser::getCurrentLineNumber()
44
{
45
    return 0;
46
}
47

    
48