|
musredit 1.0.0
|
Container class for managing default data file search paths. More...
#include <PChangeDefaultPathsDialog.h>


Public Member Functions | |
| PDefaultPaths () | |
| Constructs a PDefaultPaths object and loads paths from configuration. | |
| virtual | ~PDefaultPaths () |
| Virtual destructor. | |
| virtual bool | isValid () |
| Check if the configuration was loaded successfully. | |
| virtual void | appendDefaultPath (QString str) |
| Add a new path to the default paths list. | |
| virtual QStringList * | getDefaultPathList () |
| Get the list of default search paths. | |
| virtual QString | getPrefPathName () |
| Get the path to the configuration file being used. | |
Private Attributes | |
| bool | fValid |
| Flag indicating if configuration loaded successfully. | |
| QString | fPrefPathName |
| Full path to the active configuration file. | |
| QStringList | fDefaultPath |
| List of default data file search directories. | |
Friends | |
| class | PDefaultPathsXMLParser |
| Allow parser to access private members. | |
Container class for managing default data file search paths.
This class loads and stores the list of default directory paths where musrfit searches for muon data files. The paths are read from the musrfit_startup.xml configuration file during construction.
The configuration file is searched in the following order:
$HOME/.musrfit/$MUSRFITPATH/ $ROOTSYS/bin/ Definition at line 140 of file PChangeDefaultPathsDialog.h.
| PDefaultPaths::PDefaultPaths | ( | ) |
Constructs a PDefaultPaths object and loads paths from configuration.
Searches for the musrfit_startup.xml configuration file in the standard search locations, then parses it to extract default data paths.
After construction, call isValid() to check if configuration was loaded successfully.
Definition at line 242 of file PChangeDefaultPathsDialog.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 148 of file PChangeDefaultPathsDialog.h.
|
inlinevirtual |
Add a new path to the default paths list.
| str | Directory path to add. |
Definition at line 160 of file PChangeDefaultPathsDialog.h.
|
inlinevirtual |
Get the list of default search paths.
Definition at line 166 of file PChangeDefaultPathsDialog.h.
|
inlinevirtual |
Get the path to the configuration file being used.
Definition at line 172 of file PChangeDefaultPathsDialog.h.
|
inlinevirtual |
Check if the configuration was loaded successfully.
Definition at line 154 of file PChangeDefaultPathsDialog.h.
|
friend |
Allow parser to access private members.
Definition at line 175 of file PChangeDefaultPathsDialog.h.
|
private |
List of default data file search directories.
Definition at line 179 of file PChangeDefaultPathsDialog.h.
|
private |
Full path to the active configuration file.
Definition at line 178 of file PChangeDefaultPathsDialog.h.
|
private |
Flag indicating if configuration loaded successfully.
Definition at line 177 of file PChangeDefaultPathsDialog.h.