NAPISD
PAHdb website C++ backend
Loading...
Searching...
No Matches
LineProperties.h
1#ifndef _BASICPROPERTIES_H_
2#define _BASICPROPERTIES_H_
3
4#include <string>
5#include <string_view>
6
8
9public:
10 enum class Style : char {
11 Continuous = 1,
12 Dashed,
13 LongDashed,
14 LongDashedShortGaps,
15 DashedLongGasp
16 };
17
19
20 void setColor(std::string_view color);
21
22 std::string_view getColor() const;
23
24 void setLineWidth(int width);
25
26 const int &getLineWidth() const;
27
28 void setLineStyle(Style style);
29
30 const Style &getLineStyle() const;
31
32private:
33 std::string _color;
34
35 int _linewidth;
36
37 Style _linestyle;
38};
39
40inline void LineProperties::setColor(std::string_view color) { _color = color; }
41
42inline std::string_view LineProperties::getColor() const { return (_color); }
43
44inline void LineProperties::setLineStyle(LineProperties::Style style) {
45 _linestyle = style;
46}
47
48inline const LineProperties::Style &LineProperties::getLineStyle() const {
49 return (_linestyle);
50}
51
52inline void LineProperties::setLineWidth(int width) { _linewidth = width; }
53
54inline const int &LineProperties::getLineWidth() const { return (_linewidth); }
55
56#endif /* _BASICPROPERTIES_H_ */

Since FY2019 the NASA Ames PAH IR Spectroscopic Database is being supported through a directed Work Package at NASA Ames titled: "Laboratory Astrophysics - The NASA Ames PAH IR Spectroscopic Database".
Since FY2023 the NASA Ames PAH IR Spectroscopic Database is being supported through the Laboratory Astrophysics Rd 2 directed Work Package at NASA Ames.
© Copyright 2021-2025, Christiaan Boersma