Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ElementInformation.h
Go to the documentation of this file.
1#pragma once
2#include <ktm/global.h>
4
5namespace sf
6{
7
12{
13 public:
18
24 ElementInformation(double focus_length, double spot_size);
25
29 void clear();
30
36 void assign(double focus_length, double spot_size);
37
44 bool read(const IniProfile& ini, const std::string& section = {});
45
51 void write(IniProfile& ini, const std::string& section = {});
52
56 double getFocusLength() const;
57
61 void setFocusLength(double value);
62
66 double getSpotSize() const;
67
71 void setSpotSize(double value);
72
73 private:
77 double _focusLength;
81 double _spotSize;
82};
83
84void _KTM_CLASS storeElementInfo(IniProfile& ini, const std::string& section, ElementInformation& eid, bool read);
85
86}// namespace sf
87
88// Include all inlined functions and template implementations.
89#include <ktm/ElementInformation.hpp>
Holds the information on the transducer.
Definition ElementInformation.h:12
double getFocusLength() const
Gets the focus length of the element.
void setFocusLength(double value)
Sets the focus length of the element.
double getSpotSize() const
Gets the spot size of the element.
bool read(const IniProfile &ini, const std::string &section={})
Reads the class data from an ini-profile.
ElementInformation(double focus_length, double spot_size)
Initializing constructor which initializes the data members.
void clear()
Clears the data members to their default values.
void setSpotSize(double value)
Sets the spot size of the element.
ElementInformation()
Default constructor which initializes the data members.
void write(IniProfile &ini, const std::string &section={})
Writes the class data to an ini-profile.
void assign(double focus_length, double spot_size)
Assign both member values.
Class for reading and writing ini-profiles.
Definition IniProfile.h:17
#define _KTM_CLASS
Definition ktm/global.h:35
Definition Application.h:10
void _KTM_CLASS storeElementInfo(IniProfile &ini, const std::string &section, ElementInformation &eid, bool read)