musrfit 1.10.0
PStartupHandler.h File Reference
#include <TObject.h>
#include <TQObject.h>
#include <TList.h>
#include <TString.h>
#include <TSAXParser.h>
#include "PMusr.h"
Include dependency graph for PStartupHandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PStartupHandler
 Handles the musrfit XML startup configuration file (musrfit_startup.xml). More...
 

Functions

int parseXmlFile (TSAXParser *, const char *)
 Replacement function for TSAXParser::ParseFile().
 

Function Documentation

◆ parseXmlFile()

int parseXmlFile ( TSAXParser * ,
const char *  )

Replacement function for TSAXParser::ParseFile().

This standalone function provides a workaround for environments where TSAXParser::ParseFile() does not work correctly but ParseBuffer() does. It reads the entire XML file into memory and then parses it as a buffer.

Parameters
saxParserPointer to an initialized TSAXParser object with connected slots
startup_path_nameFull path to the XML file to be parsed
Returns
Parse status:
  • 0: Success
  • 1: File could not be read
  • Other: XML parse error code from TSAXParser::ParseBuffer()
See also
PStartupHandler

Referenced by main(), main(), and PMsr2Data::ParseXmlStartupFile().