TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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 txmlElement * NewElt (const char *name, const char **atts)
txmlElement * xmlInsertElt (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)
txmlElement * xmlReadFile (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)
txmlElement * xmlNextElt (txmlElement *startElt)
txmlElement * xmlSubElt (txmlElement *startElt)
txmlElement * xmlWalkElt (txmlElement *startElt)
txmlElement * xmlWalkSubElt (txmlElement *startElt, txmlElement *topElt)
txmlElement * xmlFindNextElt (txmlElement *startElt, char *name)
txmlElement * xmlFindEltAttr (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()

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

Definition at line 190 of file xml.cpp.

◆ endElement()

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

Definition at line 180 of file xml.cpp.

◆ NewElt()

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

Definition at line 50 of file xml.cpp.

◆ startElement()

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()

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

Definition at line 273 of file xml.cpp.

◆ wrrec()

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: