|
musrWiz 0.1.0
|
The PInstitute class represents a muon research facility/institute. More...
#include <PInstrumentDef.h>
Public Member Functions | |
| PInstitute () | |
| Constructor. Initializes the name to empty. | |
| ~PInstitute () | |
| Destructor. | |
| void | setName (QString str) |
| Sets the institute name. | |
| void | addInstrument (PInstrument instrument) |
| Adds an instrument to this institute. | |
| QString | getName () |
| Returns the institute name. | |
| QVector< PInstrument > | getInstruments () |
| Returns all instruments belonging to this institute. | |
| PInstrument * | getInstrument (QString name) |
| Returns an instrument by name. | |
Private Attributes | |
| QString | fName |
| institute name | |
| QVector< PInstrument > | fInstrument |
| list of instruments at this institute | |
The PInstitute class represents a muon research facility/institute.
This class groups multiple muon instruments belonging to the same research facility (e.g., PSI, TRIUMF, ISIS, J-PARC).
| PInstitute::PInstitute | ( | ) |
Constructor. Initializes the name to empty.
PInstitute::PInstitute constructor initializes the name to empty.
|
inline |
Destructor.
|
inline |
Adds an instrument to this institute.
| instrument | Instrument object to add. |
| PInstrument * PInstitute::getInstrument | ( | QString | name | ) |
Returns an instrument by name.
PInstitute::getInstrument returns an instrument by name.
| name | Instrument name. |
| name | Instrument name to search for. |
|
inline |
Returns all instruments belonging to this institute.
|
inline |
Returns the institute name.
|
inline |
Sets the institute name.
| str | Institute name (e.g., "PSI", "TRIUMF"). |
|
private |
list of instruments at this institute
|
private |
institute name