Scope
Storage.h
1 #pragma once
2 
3 #include "ScopeDefines.h"
4 #include "ScopeDatatypes.h"
5 #include "helpers/ScopeNumber.h"
6 #include "helpers/ScopeString.h"
7 #include "helpers/helpers.h"
8 #include "Base.h"
9 
10 namespace scope {
11 
13 namespace parameters {
14 
15 using boost::property_tree::wptree;
16 
19 class Storage
20  : public Base {
21 public:
22  Storage();
23 
26 
29 
32 
35 
38 
41 
44 
45  void Load(const wptree& pt) override;
46  void Save(wptree& pt) const override;
47  void SetReadOnlyWhileScanning(const RunState& _runstate) override;
48 };
49 
50 }
51 
52 }
ScopeString basename
basename for image files
Definition: Storage.h:28
ScopeNumber< bool > autosave
autosave all acquisitions (except live scan)
Definition: Storage.h:31
void Save(wptree &pt) const override
save parameters into a boost:property_tree
Definition: Storage.cpp:32
ScopeNumber< bool > savelive
autosave live scan acquisitions
Definition: Storage.h:34
Parameters for storage.
Definition: Storage.h:19
All parameter classes derive from this.
Definition: Base.h:21
ScopeNumber< bool > compresstiff
write compressed TIFF
Definition: Storage.h:43
Base class for all Scope datatypes here, provides a uniform interface (and saves typing...).
ScopeNumber< bool > usetifftags
write tiff tags for ImageJ etc.
Definition: Storage.h:40
ScopeString folder
folder to Save into
Definition: Storage.h:25
In here all declarations for all kinds of datatypes Scope needs.
void Load(const wptree &pt) override
load parameters from a boost::property_tree
Definition: Storage.cpp:22
A templated class for a thread-safe std::wstring, with signals that are called on value changes...
Definition: ScopeString.h:8
void SetReadOnlyWhileScanning(const RunState &_runstate) override
set values that must not be changed to read-only during scanning.
Definition: Storage.cpp:42
Various helper functions and classes for Scope.
ScopeNumber< bool > saveparameters
Save ScopeParameters in xml file.
Definition: Storage.h:37