TORCS  1.3.9
The Open Racing Car Simulator
xml.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <cstring>
#include <sys/stat.h>
#include "xmlparse.h"
#include <xml.h>
#include <portability.h>
Include dependency graph for xml.cpp:

Go to the source code of this file.

Macros

#define BUFMAX   256
 

Functions

static txmlElementNewElt (const char *name, const char **atts)
 
txmlElementxmlInsertElt (txmlElement *curElt, const char *name, const char **atts)
 
static void startElement (void *userData, const char *name, const char **atts)
 
static void endElement (void *userData, const char *)
 
static void CharacterData (void *userData, const char *s, int len)
 
txmlElementxmlReadFile (const char *file)
 
static void wr (int indent, const char *buf, FILE *out)
 
static void wrrec (txmlElement *startElt, FILE *out)
 
int xmlWriteFile (const char *file, txmlElement *startElt, char *dtd)
 
char * xmlGetAttr (txmlElement *curElt, char *attrname)
 
txmlElementxmlNextElt (txmlElement *startElt)
 
txmlElementxmlSubElt (txmlElement *startElt)
 
txmlElementxmlWalkElt (txmlElement *startElt)
 
txmlElementxmlWalkSubElt (txmlElement *startElt, txmlElement *topElt)
 
txmlElementxmlFindNextElt (txmlElement *startElt, char *name)
 
txmlElementxmlFindEltAttr (txmlElement *startElt, char *name, char *attrname, char *attrvalue)
 

Macro Definition Documentation

◆ BUFMAX

#define BUFMAX   256

Definition at line 33 of file xml.cpp.

Function Documentation

◆ CharacterData()

static void CharacterData ( void *  userData,
const char *  s,
int  len 
)
static

Definition at line 190 of file xml.cpp.

◆ endElement()

static void endElement ( void *  userData,
const char *   
)
static

Definition at line 180 of file xml.cpp.

◆ NewElt()

static txmlElement* NewElt ( const char *  name,
const char **  atts 
)
static

Definition at line 50 of file xml.cpp.

◆ startElement()

static void startElement ( void *  userData,
const char *  name,
const char **  atts 
)
static

Definition at line 159 of file xml.cpp.

Here is the call graph for this function:

◆ wr()

static void wr ( int  indent,
const char *  buf,
FILE *  out 
)
static

Definition at line 273 of file xml.cpp.

◆ wrrec()

static void wrrec ( txmlElement startElt,
FILE *  out 
)
static

Definition at line 284 of file xml.cpp.

Here is the call graph for this function:

◆ xmlFindEltAttr()

txmlElement* xmlFindEltAttr ( txmlElement startElt,
char *  name,
char *  attrname,
char *  attrvalue 
)

Definition at line 587 of file xml.cpp.

Here is the call graph for this function:

◆ xmlFindNextElt()

txmlElement* xmlFindNextElt ( txmlElement startElt,
char *  name 
)

Definition at line 553 of file xml.cpp.

Here is the call graph for this function:

◆ xmlGetAttr()

char* xmlGetAttr ( txmlElement curElt,
char *  attrname 
)

Definition at line 378 of file xml.cpp.

◆ xmlInsertElt()

txmlElement* xmlInsertElt ( txmlElement curElt,
const char *  name,
const char **  atts 
)

Definition at line 123 of file xml.cpp.

Here is the call graph for this function:

◆ xmlNextElt()

txmlElement* xmlNextElt ( txmlElement startElt)

Definition at line 410 of file xml.cpp.

◆ xmlReadFile()

txmlElement* xmlReadFile ( const char *  file)

Definition at line 237 of file xml.cpp.

Here is the call graph for this function:

◆ xmlSubElt()

txmlElement* xmlSubElt ( txmlElement startElt)

Definition at line 440 of file xml.cpp.

◆ xmlWalkElt()

txmlElement* xmlWalkElt ( txmlElement startElt)

Definition at line 466 of file xml.cpp.

◆ xmlWalkSubElt()

txmlElement* xmlWalkSubElt ( txmlElement startElt,
txmlElement topElt 
)

Definition at line 509 of file xml.cpp.

◆ xmlWriteFile()

int xmlWriteFile ( const char *  file,
txmlElement startElt,
char *  dtd 
)

Definition at line 340 of file xml.cpp.

Here is the call graph for this function: