Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
xDataExtras.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xData.h"

Go to the source code of this file.

Classes

struct  xmlTextStruct_s
 

Typedefs

typedef struct xmlTextStruct_s xmlTextStruct
 

Functions

char * xData_parseReconstructXML (xData_document *xData_doc)
 
int xData_parseOutline (FILE *f, xData_document *xData_doc, int outputText)
 

Typedef Documentation

◆ xmlTextStruct

Function Documentation

◆ xData_parseOutline()

int xData_parseOutline ( FILE *  f,
xData_document xData_doc,
int  outputText 
)

Definition at line 142 of file xDataExtras.cc.

142 {
143
144 xData_parseOutlinePrintRoot( f, &(xData_doc->root), outputText );
145 return( 0 );
146}
xData_rootElement root
Definition: xData.h:208

◆ xData_parseReconstructXML()

char * xData_parseReconstructXML ( xData_document xData_doc)

Definition at line 59 of file xDataExtras.cc.

59 {
60
61 int err;
62 xmlTextStruct XML = { 0, 0, NULL };
63
64 err = xData_parseReconstructXML2( &(xData_doc->root), &XML, NULL, 0 );
65 //if( err == 0 ) addStringToXML( &XML, "\n", -1 );
66 if( err == 0 ) addStringToXML( &XML, (char*) "\n", -1 );
67 return( XML.text );
68}