BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
SessionData.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Data/SessionData.h
6 //! @brief Defines struct SessionData
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2021
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_MODEL_DATA_SESSIONDATA_H
16 #define BORNAGAIN_GUI_MODEL_DATA_SESSIONDATA_H
17 
19 #include <optional>
20 
21 class ProjectDocument;
22 
23 struct SessionData {
24  SessionData();
25 
27  std::optional<ProjectDocument*> projectDocument;
28 };
29 
30 extern SessionData* gSessionData; //!< global pointer to the single instance
31 
32 #endif // BORNAGAIN_GUI_MODEL_DATA_SESSIONDATA_H
Defines class InstrumentLibrary.
SessionData * gSessionData
global pointer to the single instance
Definition: SessionData.cpp:17
Project document class handles all data related to the opened project (sample, job,...
InstrumentLibrary instrumentLibrary
Definition: SessionData.h:26
std::optional< ProjectDocument * > projectDocument
Definition: SessionData.h:27