BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::ProjectContext Struct Reference

Provides necessary information for Project construction. More...

Public Types

using models_callback_t = std::function< std::vector< SessionModel * >()>
 To ask for a vector of models to save/load to/from disk. More...
 
using modified_callback_t = std::function< void()>
 < To notify about the change of the project with respect to what was written on disk. More...
 

Public Attributes

models_callback_t m_models_callback
 
modified_callback_t m_modified_callback
 

Detailed Description

Provides necessary information for Project construction.

Definition at line 32 of file project_types.h.

Member Typedef Documentation

◆ models_callback_t

using ModelView::ProjectContext::models_callback_t = std::function<std::vector<SessionModel*>()>

To ask for a vector of models to save/load to/from disk.

This is intentionally obtained via callback since save request might come after the Project construction.

Definition at line 39 of file project_types.h.

◆ modified_callback_t

using ModelView::ProjectContext::modified_callback_t = std::function<void()>

< To notify about the change of the project with respect to what was written on disk.

Definition at line 34 of file project_types.h.

Member Data Documentation

◆ m_models_callback

◆ m_modified_callback

modified_callback_t ModelView::ProjectContext::m_modified_callback

Definition at line 41 of file project_types.h.


The documentation for this struct was generated from the following file: