Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Configuration Class Reference

#include <configuration.h>

List of all members.

Public Methods

 Configuration ()
virtual ~Configuration ()
void LoadConfigFromFile ()
void SaveFormulaToFile ()
void SaveSimulationToFile ()
void SaveTempToFile ()
void SetAtomShape (Style_t s)
void SetAtomSize (Size_t s)
void SetAtomColor (Color_t c)
void SetAtomStyle (Style_t, Size_t, Color_t)
void SetDefectShape (Style_t s)
void SetDefectSize (Size_t s)
void SetDefectColor (Color_t c)
void SetDefectStyle (Style_t, Size_t, Color_t)
void SetParam (const char **, const char **, Double_t *, const char **, UInt_t)
void SetFunction (Int_t *, const char **, const char **, const char **, const char **, const char **, const char **, UInt_t)
void SetBoltzConst (Double_t c)
void SetTemp (Double_t temp)
void SetTempMin (Double_t t)
void SetTempMax (Double_t t)
void SetInsNum (Int_t n)
void SetRemNum (Int_t n)
void SetInteractionLimit (Double_t lim)
void UpdateCanvas (Int_t flag)
void AutoSave (Int_t flag)
void SetUpdateInterval (Int_t i)
void SetSaveInterval (Int_t i)
void SetImageFormat (Int_t f)
void SetImagePath (const char *str)
void SetImagePrefix (const char *str)
Function ** AddFunction (Int_t, const char *, const char *, const char *, const char *="", const char *="", const char *="")
void RevertFunction ()
void CleanFunction ()
Style_t GetAtomShape ()
Size_t GetAtomSize ()
Color_t GetAtomColor ()
Style_t GetDefectShape ()
Size_t GetDefectSize ()
Color_t GetDefectColor ()
UInt_t GetParam (Param **&)
UInt_t GetFunction (Function **&)
UInt_t GetParamCount ()
UInt_t GetFuncCount ()
Double_t GetBoltzConst ()
Double_t GetTemp ()
Double_t GetTempMax ()
Double_t GetTempMin ()
Double_t GetInteractionLimit ()
Int_t GetInsNum ()
Int_t GetRemNum ()
Int_t UpdateCanvas ()
Int_t AutoSave ()
Int_t GetUpdateInterval ()
Int_t GetSaveInterval ()
Int_t GetImageFormat ()
const char * GetImagePath ()
const char * GetImagePrefix ()

Protected Methods

xmlDocPtr CreateConfigFile ()
xmlNodePtr GetConfigNode (char *)
void WriteParam (xmlNodePtr)
void WriteFunction (xmlNodePtr)
void WriteLattice (xmlNodePtr)
void WriteMonteCarlo (xmlNodePtr)

Protected Attributes

xmlDocPtr xmlDoc
Double_t k
Double_t T
Double_t Tmin
Double_t Tmax
Double_t intLimit
Int_t bUpdateCanvas
Int_t bAutoSave
Int_t updateInt
Int_t saveInt
Int_t imgFormat
Int_t insNum
Int_t remNum
char * imgPath
char * imgPrefix
const char * homePath
const char * fileName
Style_t atomShape
Style_t defectShape
Size_t atomSize
Size_t defectSize
Color_t atomColor
Color_t defectColor
Param ** params
Function ** functions
UInt_t paramCount
UInt_t funcCount


Constructor & Destructor Documentation

Configuration::Configuration  
 

Definition at line 3 of file configuration.cpp.

References CONFIG_FILE, fileName, functions, homePath, LoadConfigFromFile(), params, and xmlDoc.

Configuration::~Configuration   [virtual]
 

Definition at line 15 of file configuration.cpp.

References functions, imgPath, imgPrefix, params, and xmlDoc.


Member Function Documentation

Function ** Configuration::AddFunction Int_t   ,
const char *   ,
const char *   ,
const char *   ,
const char *    = "",
const char *    = "",
const char *    = ""
 

Definition at line 382 of file configuration.cpp.

References Function::bAdded, funcCount, and functions.

Referenced by AddFuncDlg::DoButtons().

Int_t Configuration::AutoSave   [inline]
 

Definition at line 207 of file configuration.h.

References bAutoSave.

void Configuration::AutoSave Int_t    flag [inline]
 

Definition at line 178 of file configuration.h.

References bAutoSave.

Referenced by SimulationDialog::DoOk(), MainFrame::HandleMenu(), MainFrame::MainFrame(), Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

void Configuration::CleanFunction  
 

Definition at line 447 of file configuration.cpp.

References Function::bDeleted, Function::curExpr, Function::curLatex, Function::curName, Function::curX, Function::curY, Function::curZ, funcCount, functions, and SetFunction().

Referenced by ConfigDialog::DoSave().

xmlDocPtr Configuration::CreateConfigFile   [protected]
 

Definition at line 502 of file configuration.cpp.

References fileName, and homePath.

Referenced by LoadConfigFromFile().

Color_t Configuration::GetAtomColor   [inline]
 

Definition at line 191 of file configuration.h.

References atomColor.

Referenced by SimulationDialog::DoCancel(), Lattice::Lattice(), and SimulationDialog::SimulationDialog().

Style_t Configuration::GetAtomShape   [inline]
 

Definition at line 189 of file configuration.h.

References atomShape.

Referenced by SimulationDialog::DoCancel(), Lattice::Lattice(), and SimulationDialog::SimulationDialog().

Size_t Configuration::GetAtomSize   [inline]
 

Definition at line 190 of file configuration.h.

References atomSize.

Referenced by SimulationDialog::DoCancel(), Lattice::Lattice(), and SimulationDialog::SimulationDialog().

Double_t Configuration::GetBoltzConst   [inline]
 

Definition at line 199 of file configuration.h.

References k.

Referenced by Layer::GetBoltzConst(), and SimulationDialog::SimulationDialog().

xmlNodePtr Configuration::GetConfigNode char *    [protected]
 

Definition at line 699 of file configuration.cpp.

References xmlDoc.

Referenced by LoadConfigFromFile(), SaveFormulaToFile(), SaveSimulationToFile(), and SaveTempToFile().

Color_t Configuration::GetDefectColor   [inline]
 

Definition at line 194 of file configuration.h.

References defectColor.

Referenced by SimulationDialog::DoCancel(), Lattice::Lattice(), and SimulationDialog::SimulationDialog().

Style_t Configuration::GetDefectShape   [inline]
 

Definition at line 192 of file configuration.h.

References defectShape.

Referenced by SimulationDialog::DoCancel(), Lattice::Lattice(), and SimulationDialog::SimulationDialog().

Size_t Configuration::GetDefectSize   [inline]
 

Definition at line 193 of file configuration.h.

References defectSize.

Referenced by SimulationDialog::DoCancel(), Lattice::Lattice(), and SimulationDialog::SimulationDialog().

UInt_t Configuration::GetFuncCount   [inline]
 

Definition at line 198 of file configuration.h.

References funcCount.

UInt_t Configuration::GetFunction Function **&   
 

Definition at line 496 of file configuration.cpp.

References funcCount, and functions.

Referenced by AddFuncDlg::AddFuncDlg(), MainFrame::ClearEnFuncCombo(), RenFuncDlg::DoButtons(), AddFuncDlg::DoButtons(), MainFrame::DoButtons(), ConfigDialog::DoSave(), ConfigDialog::DoTabButtons(), MainFrame::FillEnFuncCombo(), ConfigDialog::LoadFunctions(), ConfigDialog::RemoveFunctions(), RenFuncDlg::RenFuncDlg(), and ConfigDialog::VerifyFunction().

Int_t Configuration::GetImageFormat   [inline]
 

Definition at line 210 of file configuration.h.

References imgFormat.

Referenced by Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

const char* Configuration::GetImagePath   [inline]
 

Definition at line 211 of file configuration.h.

References imgPath.

Referenced by Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

const char* Configuration::GetImagePrefix   [inline]
 

Definition at line 212 of file configuration.h.

References imgPrefix.

Referenced by Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

Int_t Configuration::GetInsNum   [inline]
 

Definition at line 204 of file configuration.h.

References insNum.

Referenced by MainFrame::HandleMenu(), and SimulationDialog::SimulationDialog().

Double_t Configuration::GetInteractionLimit   [inline]
 

Definition at line 203 of file configuration.h.

References intLimit.

Referenced by MainFrame::HandleMenu(), and SimulationDialog::SimulationDialog().

UInt_t Configuration::GetParam Param **&   
 

Definition at line 490 of file configuration.cpp.

References paramCount, and params.

Referenced by ConfigDialog::ConfigDialog(), MainFrame::DoButtons(), ConfigDialog::DoTabButtons(), MainFrame::FillParamCont(), ConfigDialog::LoadParameters(), and ConfigDialog::ParseExpression().

UInt_t Configuration::GetParamCount   [inline]
 

Definition at line 197 of file configuration.h.

References paramCount.

Int_t Configuration::GetRemNum   [inline]
 

Definition at line 205 of file configuration.h.

References remNum.

Referenced by MainFrame::HandleMenu(), and SimulationDialog::SimulationDialog().

Int_t Configuration::GetSaveInterval   [inline]
 

Definition at line 209 of file configuration.h.

References saveInt.

Referenced by Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

Double_t Configuration::GetTemp   [inline]
 

Definition at line 200 of file configuration.h.

References T.

Referenced by SliderRangeDlg::DoButtons(), TempControl::DoMaxRange(), TempControl::DoMinRange(), Layer::GetTemp(), MainFrame::MainFrame(), TempControl::TempControl(), and TempControl::~TempControl().

Double_t Configuration::GetTempMax   [inline]
 

Definition at line 201 of file configuration.h.

References Tmax.

Referenced by TempControl::DoMaxRange(), TempControl::DoMinRange(), MainFrame::MainFrame(), SliderRangeDlg::SliderRangeDlg(), TempControl::TempControl(), and TempControl::~TempControl().

Double_t Configuration::GetTempMin   [inline]
 

Definition at line 202 of file configuration.h.

References Tmin.

Referenced by TempControl::DoMaxRange(), TempControl::DoMinRange(), MainFrame::MainFrame(), SliderRangeDlg::SliderRangeDlg(), TempControl::TempControl(), and TempControl::~TempControl().

Int_t Configuration::GetUpdateInterval   [inline]
 

Definition at line 208 of file configuration.h.

References updateInt.

Referenced by Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

void Configuration::LoadConfigFromFile  
 

Definition at line 23 of file configuration.cpp.

References atomColor, atomShape, atomSize, bAutoSave, bUpdateCanvas, CreateConfigFile(), defectColor, defectShape, defectSize, fileName, GetConfigNode(), homePath, imgFormat, imgPath, imgPrefix, insNum, intLimit, k, remNum, saveInt, SetFunction(), SetParam(), T, Tmax, Tmin, updateInt, and xmlDoc.

Referenced by Configuration().

void Configuration::RevertFunction  
 

Definition at line 404 of file configuration.cpp.

References Function::bAdded, funcCount, functions, Function::oldExpr, Function::oldLatex, Function::oldName, Function::oldX, Function::oldY, Function::oldZ, and SetFunction().

Referenced by ConfigDialog::DoCancel(), and ConfigDialog::DoTabButtons().

void Configuration::SaveFormulaToFile  
 

Definition at line 247 of file configuration.cpp.

References fileName, GetConfigNode(), WriteFunction(), WriteParam(), and xmlDoc.

Referenced by ConfigDialog::DoSave().

void Configuration::SaveSimulationToFile  
 

Definition at line 268 of file configuration.cpp.

References fileName, GetConfigNode(), WriteLattice(), WriteMonteCarlo(), and xmlDoc.

Referenced by SimulationDialog::DoOk().

void Configuration::SaveTempToFile  
 

Definition at line 288 of file configuration.cpp.

References fileName, GetConfigNode(), T, Tmax, Tmin, and xmlDoc.

Referenced by MainFrame::CloseWindow().

void Configuration::SetAtomColor Color_t    c [inline]
 

Definition at line 162 of file configuration.h.

References atomColor.

void Configuration::SetAtomShape Style_t    s [inline]
 

Definition at line 160 of file configuration.h.

References atomShape.

void Configuration::SetAtomSize Size_t    s [inline]
 

Definition at line 161 of file configuration.h.

References atomSize.

void Configuration::SetAtomStyle Style_t   ,
Size_t   ,
Color_t   
 

Definition at line 334 of file configuration.cpp.

References atomColor, atomShape, and atomSize.

Referenced by SimulationDialog::DoOk().

void Configuration::SetBoltzConst Double_t    c [inline]
 

Definition at line 170 of file configuration.h.

References k.

Referenced by SimulationDialog::DoOk().

void Configuration::SetDefectColor Color_t    c [inline]
 

Definition at line 166 of file configuration.h.

References defectColor.

void Configuration::SetDefectShape Style_t    s [inline]
 

Definition at line 164 of file configuration.h.

References defectShape.

void Configuration::SetDefectSize Size_t    s [inline]
 

Definition at line 165 of file configuration.h.

References defectSize.

void Configuration::SetDefectStyle Style_t   ,
Size_t   ,
Color_t   
 

Definition at line 341 of file configuration.cpp.

References defectColor, defectShape, and defectSize.

Referenced by SimulationDialog::DoOk().

void Configuration::SetFunction Int_t *   ,
const char **   ,
const char **   ,
const char **   ,
const char **   ,
const char **   ,
const char **   ,
UInt_t   
 

Definition at line 365 of file configuration.cpp.

References funcCount, and functions.

Referenced by CleanFunction(), LoadConfigFromFile(), and RevertFunction().

void Configuration::SetImageFormat Int_t    f [inline]
 

Definition at line 181 of file configuration.h.

References imgFormat.

Referenced by SimulationDialog::DoOk().

void Configuration::SetImagePath const char *    str
 

Definition at line 310 of file configuration.cpp.

References imgPath.

Referenced by SimulationDialog::DoOk().

void Configuration::SetImagePrefix const char *    str
 

Definition at line 322 of file configuration.cpp.

References imgPrefix.

Referenced by SimulationDialog::DoOk().

void Configuration::SetInsNum Int_t    n [inline]
 

Definition at line 174 of file configuration.h.

References insNum.

Referenced by SimulationDialog::DoOk().

void Configuration::SetInteractionLimit Double_t    lim [inline]
 

Definition at line 176 of file configuration.h.

References intLimit.

Referenced by SimulationDialog::DoOk(), and Layer::SetLattice().

void Configuration::SetParam const char **   ,
const char **   ,
Double_t *   ,
const char **   ,
UInt_t   
 

Definition at line 348 of file configuration.cpp.

References paramCount, and params.

Referenced by ConfigDialog::DoSave(), and LoadConfigFromFile().

void Configuration::SetRemNum Int_t    n [inline]
 

Definition at line 175 of file configuration.h.

References remNum.

Referenced by SimulationDialog::DoOk().

void Configuration::SetSaveInterval Int_t    i [inline]
 

Definition at line 180 of file configuration.h.

References saveInt.

Referenced by SimulationDialog::DoOk().

void Configuration::SetTemp Double_t    temp [inline]
 

Definition at line 171 of file configuration.h.

References T.

Referenced by MainFrame::DoButtons(), TempControl::DoMaxRange(), TempControl::DoMinRange(), SimulationDialog::DoOk(), and TempControl::DoSlider().

void Configuration::SetTempMax Double_t    t [inline]
 

Definition at line 173 of file configuration.h.

References Tmax.

Referenced by SliderRangeDlg::DoButtons(), and TempControl::DoMaxRange().

void Configuration::SetTempMin Double_t    t [inline]
 

Definition at line 172 of file configuration.h.

References Tmin.

Referenced by SliderRangeDlg::DoButtons(), and TempControl::DoMinRange().

void Configuration::SetUpdateInterval Int_t    i [inline]
 

Definition at line 179 of file configuration.h.

References updateInt.

Referenced by SimulationDialog::DoOk().

Int_t Configuration::UpdateCanvas   [inline]
 

Definition at line 206 of file configuration.h.

References bUpdateCanvas.

void Configuration::UpdateCanvas Int_t    flag [inline]
 

Definition at line 177 of file configuration.h.

References bUpdateCanvas.

Referenced by SimulationDialog::DoOk(), MainFrame::HandleMenu(), MainFrame::MainFrame(), Layer::MonteCarlo(), and SimulationDialog::SimulationDialog().

void Configuration::WriteFunction xmlNodePtr    [protected]
 

Definition at line 606 of file configuration.cpp.

References funcCount, and functions.

Referenced by SaveFormulaToFile().

void Configuration::WriteLattice xmlNodePtr    [protected]
 

Definition at line 630 of file configuration.cpp.

References atomColor, atomShape, atomSize, defectColor, defectShape, defectSize, insNum, and remNum.

Referenced by SaveSimulationToFile().

void Configuration::WriteMonteCarlo xmlNodePtr    [protected]
 

Definition at line 660 of file configuration.cpp.

References imgFormat, imgPath, imgPrefix, intLimit, k, saveInt, T, Tmax, Tmin, and updateInt.

Referenced by SaveSimulationToFile().

void Configuration::WriteParam xmlNodePtr    [protected]
 

Definition at line 586 of file configuration.cpp.

References paramCount, and params.

Referenced by SaveFormulaToFile().


Member Data Documentation

Color_t Configuration::atomColor [protected]
 

Definition at line 235 of file configuration.h.

Referenced by GetAtomColor(), LoadConfigFromFile(), SetAtomColor(), SetAtomStyle(), and WriteLattice().

Style_t Configuration::atomShape [protected]
 

Definition at line 233 of file configuration.h.

Referenced by GetAtomShape(), LoadConfigFromFile(), SetAtomShape(), SetAtomStyle(), and WriteLattice().

Size_t Configuration::atomSize [protected]
 

Definition at line 234 of file configuration.h.

Referenced by GetAtomSize(), LoadConfigFromFile(), SetAtomSize(), SetAtomStyle(), and WriteLattice().

Int_t Configuration::bAutoSave [protected]
 

Definition at line 228 of file configuration.h.

Referenced by AutoSave(), and LoadConfigFromFile().

Int_t Configuration::bUpdateCanvas [protected]
 

Definition at line 228 of file configuration.h.

Referenced by LoadConfigFromFile(), and UpdateCanvas().

Color_t Configuration::defectColor [protected]
 

Definition at line 235 of file configuration.h.

Referenced by GetDefectColor(), LoadConfigFromFile(), SetDefectColor(), SetDefectStyle(), and WriteLattice().

Style_t Configuration::defectShape [protected]
 

Definition at line 233 of file configuration.h.

Referenced by GetDefectShape(), LoadConfigFromFile(), SetDefectShape(), SetDefectStyle(), and WriteLattice().

Size_t Configuration::defectSize [protected]
 

Definition at line 234 of file configuration.h.

Referenced by GetDefectSize(), LoadConfigFromFile(), SetDefectSize(), SetDefectStyle(), and WriteLattice().

const char * Configuration::fileName [protected]
 

Definition at line 232 of file configuration.h.

Referenced by Configuration(), CreateConfigFile(), LoadConfigFromFile(), SaveFormulaToFile(), SaveSimulationToFile(), and SaveTempToFile().

UInt_t Configuration::funcCount [protected]
 

Definition at line 238 of file configuration.h.

Referenced by AddFunction(), CleanFunction(), GetFuncCount(), GetFunction(), RevertFunction(), SetFunction(), and WriteFunction().

Function** Configuration::functions [protected]
 

Definition at line 237 of file configuration.h.

Referenced by AddFunction(), CleanFunction(), Configuration(), GetFunction(), RevertFunction(), SetFunction(), WriteFunction(), and ~Configuration().

const char* Configuration::homePath [protected]
 

Definition at line 232 of file configuration.h.

Referenced by Configuration(), CreateConfigFile(), and LoadConfigFromFile().

Int_t Configuration::imgFormat [protected]
 

Definition at line 229 of file configuration.h.

Referenced by GetImageFormat(), LoadConfigFromFile(), SetImageFormat(), and WriteMonteCarlo().

char* Configuration::imgPath [protected]
 

Definition at line 231 of file configuration.h.

Referenced by GetImagePath(), LoadConfigFromFile(), SetImagePath(), WriteMonteCarlo(), and ~Configuration().

char * Configuration::imgPrefix [protected]
 

Definition at line 231 of file configuration.h.

Referenced by GetImagePrefix(), LoadConfigFromFile(), SetImagePrefix(), WriteMonteCarlo(), and ~Configuration().

Int_t Configuration::insNum [protected]
 

Definition at line 230 of file configuration.h.

Referenced by GetInsNum(), LoadConfigFromFile(), SetInsNum(), and WriteLattice().

Double_t Configuration::intLimit [protected]
 

Definition at line 227 of file configuration.h.

Referenced by GetInteractionLimit(), LoadConfigFromFile(), SetInteractionLimit(), and WriteMonteCarlo().

Double_t Configuration::k [protected]
 

Definition at line 227 of file configuration.h.

Referenced by GetBoltzConst(), LoadConfigFromFile(), SetBoltzConst(), and WriteMonteCarlo().

UInt_t Configuration::paramCount [protected]
 

Definition at line 238 of file configuration.h.

Referenced by GetParam(), GetParamCount(), SetParam(), and WriteParam().

Param** Configuration::params [protected]
 

Definition at line 236 of file configuration.h.

Referenced by Configuration(), GetParam(), SetParam(), WriteParam(), and ~Configuration().

Int_t Configuration::remNum [protected]
 

Definition at line 230 of file configuration.h.

Referenced by GetRemNum(), LoadConfigFromFile(), SetRemNum(), and WriteLattice().

Int_t Configuration::saveInt [protected]
 

Definition at line 229 of file configuration.h.

Referenced by GetSaveInterval(), LoadConfigFromFile(), SetSaveInterval(), and WriteMonteCarlo().

Double_t Configuration::T [protected]
 

Definition at line 227 of file configuration.h.

Referenced by GetTemp(), LoadConfigFromFile(), SaveTempToFile(), SetTemp(), and WriteMonteCarlo().

Double_t Configuration::Tmax [protected]
 

Definition at line 227 of file configuration.h.

Referenced by GetTempMax(), LoadConfigFromFile(), SaveTempToFile(), SetTempMax(), and WriteMonteCarlo().

Double_t Configuration::Tmin [protected]
 

Definition at line 227 of file configuration.h.

Referenced by GetTempMin(), LoadConfigFromFile(), SaveTempToFile(), SetTempMin(), and WriteMonteCarlo().

Int_t Configuration::updateInt [protected]
 

Definition at line 229 of file configuration.h.

Referenced by GetUpdateInterval(), LoadConfigFromFile(), SetUpdateInterval(), and WriteMonteCarlo().

xmlDocPtr Configuration::xmlDoc [protected]
 

Definition at line 224 of file configuration.h.

Referenced by Configuration(), GetConfigNode(), LoadConfigFromFile(), SaveFormulaToFile(), SaveSimulationToFile(), SaveTempToFile(), and ~Configuration().


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 20:08:05 2002 for XEIS by doxygen1.2.16