musrfit  1.9.2
PStartupHandler.cpp File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <TObjArray.h>
#include <TObjString.h>
#include <TColor.h>
#include <TList.h>
#include <TXMLAttr.h>
#include "PStartupHandler.h"
Include dependency graph for PStartupHandler.cpp:

Go to the source code of this file.

Functions

 ClassImpQ (PStartupHandler) int parseXmlFile(TSAXParser *saxParser
 
xmlFile open (startup_path_name, std::ios::in|std::ios::ate)
 
 if (xmlFile.is_open())
 
 if (!xmlBuffer)
 

Variables

const char * startup_path_name
 
std::fstream xmlFile
 
unsigned int xmlSize = 0
 
char * xmlBuffer = nullptr
 
 else
 
return status
 

Function Documentation

◆ ClassImpQ()

ClassImpQ ( PStartupHandler  )

Replacement for the ParseFile method of TSAXParser.

return:

  • 1 if file cannot be read
  • 0 if the file has been parsed successfully
  • parse error code otherwise
Parameters
saxParserpointer to a TSAXParser object
startup_path_namefull path to the XML file to be read

◆ if() [1/2]

if ( xmlFile.  is_open())

◆ if() [2/2]

if ( xmlBuffer)

Definition at line 77 of file PStartupHandler.cpp.

References status.

◆ open()

xmlFile open ( startup_path_name  ,
std::ios::in|std::ios::ate   
)

Variable Documentation

◆ else

else
Initial value:
{
status = saxParser->ParseBuffer(xmlBuffer, xmlSize)
char * xmlBuffer
return status
unsigned int xmlSize

Definition at line 79 of file PStartupHandler.cpp.

◆ startup_path_name

const char* startup_path_name

◆ status

◆ xmlBuffer

xmlBuffer = nullptr

Definition at line 67 of file PStartupHandler.cpp.

Referenced by if().

◆ xmlFile

std::fstream xmlFile

Definition at line 65 of file PStartupHandler.cpp.

Referenced by if().

◆ xmlSize

unsigned int xmlSize = 0

Definition at line 66 of file PStartupHandler.cpp.

Referenced by if().