Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Typedefs | Functions
xDataExtras.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xData.h"

Go to the source code of this file.

Data Structures

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

Function Documentation

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

Definition at line 142 of file xDataExtras.cc.

References xData_document_s::root.

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

Definition at line 59 of file xDataExtras.cc.

References xData_document_s::root, and xmlTextStruct_s::text.

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 }
xData_rootElement root
Definition: xData.h:208