QXRD  0.11.16
qxrdexperimentsettings.cpp
Go to the documentation of this file.
1 #include "qxrddebug.h"
3 #include <stdio.h>
4 #include "qxrdexperiment.h"
5 
7  : QSettings("cep.xor.aps.anl.gov","qxrd-2",NULL),
8  m_Experiment(parent)
9 {
10  if (qcepDebug(DEBUG_PREFS)) {
11  if (m_Experiment) {
12  m_Experiment->printMessage("QxrdExperimentSettings::QxrdExperimentSettings");
13  }
14  }
15 }
16 
17 QxrdExperimentSettings::QxrdExperimentSettings(const QString &path, QSettings::Format format, QcepObject *parent)
18  : QSettings(path, format, parent),
19  m_Experiment(NULL)
20 {
21 }
22 
24 {
25  if (qcepDebug(DEBUG_PREFS)) {
26  if (m_Experiment) {
27  m_Experiment->printMessage("QxrdExperimentSettings::~QxrdExperimentSettings");
28  }
29  }
30 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QxrdExperimentSettings(QxrdExperiment *parent=0)