DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CreateDatabaseWidget.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/CreateDatabaseWidget.h to include/dbe/CreateDatabaseWidget.hpp).
5
6#ifndef CREATEDATABASEWIDGET_H
7#define CREATEDATABASEWIDGET_H
8
10#include <QFileInfo>
11#include <QStatusBar>
12#include <QWidget>
14#include "ui_CreateDatabaseWidget.h"
15
16namespace dbe {
17
18namespace Ui {
19class CreateDatabaseWidget;
20} // namespace Ui
21
23 : public QWidget
24 , private dbe::Ui::CreateDatabaseWidget
25{
26 Q_OBJECT
27public:
28 CreateDatabaseWidget(QWidget* parent = nullptr, bool Include = false, const QString& CreateDir = QString());
29
30signals:
31 void CanLoadDatabase(const QString& DatabasePath);
32 void CanIncludeDatabase(const QString& DatabasePath);
33
34private:
35 QFileInfo DatabaseFile;
36 QFileInfo SchemaFile;
37 QString DirToCreate;
39 std::list<std::string> get_includes();
40 bool create_database_file(std::string extra_text);
41private slots:
42 void DefineSchema();
43 void DefineDatabaseFile();
47};
48
49} // end namespace dbe
50#endif // CREATEDATABASEWIDGET_H
void CanLoadDatabase(const QString &DatabasePath)
std::list< std::string > get_includes()
void CanIncludeDatabase(const QString &DatabasePath)
bool create_database_file(std::string extra_text)
CreateDatabaseWidget(QWidget *parent=nullptr, bool Include=false, const QString &CreateDir=QString())
Include QT Headers.