musrfit  1.9.2
PUserFcnBase.cpp File Reference
#include <vector>
#include <fstream>
#include "PUserFcnBase.h"
Include dependency graph for PUserFcnBase.cpp:

Go to the source code of this file.

Functions

 ClassImp (PUserFcnBase) Int_t 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
 
UInt_t xmlSize = 0
 
Char_t * xmlBuffer = nullptr
 
 else
 
return status
 
std::vector< void * > gGlobalUserFcn
 

Function Documentation

◆ ClassImp()

ClassImp ( PUserFcnBase  )

Replacement for the ParseFile method of TSAXParser that can be used in user functions.

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

Definition at line 61 of file PUserFcnBase.cpp.

References xmlBuffer, xmlFile, and xmlSize.

◆ if() [2/2]

if ( xmlBuffer)

Definition at line 68 of file PUserFcnBase.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_t * xmlBuffer
return status
UInt_t xmlSize

Definition at line 70 of file PUserFcnBase.cpp.

◆ gGlobalUserFcn

std::vector<void *> gGlobalUserFcn

Definition at line 80 of file PUserFcnBase.cpp.

Referenced by PTheory::PTheory(), and PTheory::~PTheory().

◆ startup_path_name

const char* startup_path_name
Initial value:
{
Int_t status
return status

Definition at line 54 of file PUserFcnBase.cpp.

◆ status

return status

Definition at line 76 of file PUserFcnBase.cpp.

Referenced by if().

◆ xmlBuffer

xmlBuffer = nullptr

Definition at line 58 of file PUserFcnBase.cpp.

Referenced by if().

◆ xmlFile

std::fstream xmlFile

Definition at line 56 of file PUserFcnBase.cpp.

Referenced by if().

◆ xmlSize

UInt_t xmlSize = 0

Definition at line 57 of file PUserFcnBase.cpp.

Referenced by if().