##// END OF EJS Templates
Handles rendering properties for spectrograms...
Handles rendering properties for spectrograms Spectrogram's colormap uses gradient and is associated to the color scale of the plot

File last commit:

r864:551a1137cf04
r922:76b9deb45018
Show More
Unit.h
23 lines | 587 B | text/x-c | CLexer
Alexandre Leroux
Minor changes...
r864 #ifndef SCIQLOP_UNIT_H
#define SCIQLOP_UNIT_H
#include <QString>
#include <tuple>
struct Unit {
explicit Unit(const QString &name = {}, bool timeUnit = false)
: m_Name{name}, m_TimeUnit{timeUnit}
{
}
inline bool operator==(const Unit &other) const
{
return std::tie(m_Name, m_TimeUnit) == std::tie(other.m_Name, other.m_TimeUnit);
}
inline bool operator!=(const Unit &other) const { return !(*this == other); }
QString m_Name; ///< Unit name
bool m_TimeUnit; ///< The unit is a unit of time (UTC)
};
#endif // SCIQLOP_UNIT_H