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
43 void read(IniProfile& ini, const std::string& section = {});
44
50 void write(IniProfile& ini, const std::string& section = {});
51
52 double getFocusLength() const;
53
54 double getSpotSize() const;
55
56 private:
60 double _focusLength;
64 double _spotSize;
65};
66
67void _KTM_CLASS storeElementInfo(IniProfile& ini, const std::string& section, ElementInformation& eid, bool read);
68
69}// namespace sf
70
71// Include all inlined functions and template implementations.
72#include <ktm/ElementInformation.hpp>
Holds the information on the transducer.
Definition ElementInformation.h:12
double getFocusLength() const
void read(IniProfile &ini, const std::string &section={})
Reads the class data from an ini-profile.
double getSpotSize() const
ElementInformation(double focus_length, double spot_size)
Initializing constructor which initializes the data members.
void clear()
Clears the data members to their default values.
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:16
#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)