5 #include "model/CustomTypeID.h"
284 bool isValid(
double value)
const;
292 std::string
symbol(
bool plain =
false)
const;
303 std::string
format(
double value,
bool plain =
false)
const;
308 ModuleType(
const Type &type,
const std::set<Attribute> &attributes);
318 void setType(
const Type &type);
321 void setAttributes(
const std::set<Attribute> &attributes);
322 std::set<Attribute> attributes()
const;
324 bool isControllable()
const;
332 static bool hasCombination(
333 const std::set<Attribute> &attributes,
334 const std::set<Attribute> &check);
335 static void assureValidAttributes(
336 const std::set<Attribute> &attributes);
340 std::set<Attribute> m_attributes;
Definition: ModuleType.h:59
Definition: ModuleType.h:261
Definition: ModuleType.h:40
Definition: ModuleType.h:31
Definition: ModuleType.h:230
Raw
Definition: ModuleType.h:21
Definition: ModuleType.h:76
bool isValid(double value) const
Definition: ModuleType.cpp:92
Definition: ModuleType.h:252
Definition: ModuleType.h:172
Definition: ModuleType.h:54
Definition: ModuleType.h:90
std::string format(double value, bool plain=false) const
Definition: ModuleType.cpp:169
Definition: ModuleType.h:222
Definition: ModuleType.h:244
Definition: ModuleType.h:20
Raw
Definition: ModuleType.h:47
Definition: ModuleType.h:131
Definition: ModuleType.h:182
Definition: ModuleType.h:46
Definition: ModuleType.h:207
Definition: ModuleType.h:117
Unit baseUnit() const
Definition: ModuleType.cpp:233
Definition: ModuleType.h:161
Representation of physical units.
Definition: ModuleType.h:277
Definition: ModuleType.h:217
Definition: ModuleType.h:140
Definition: ModuleType.h:166
Definition: ModuleType.h:256
Definition: ModuleType.h:248
Definition: ModuleType.h:186
Definition: ModuleType.h:72
Definition: ModuleType.h:177
std::string symbol(bool plain=false) const
Definition: ModuleType.cpp:131
Raw
Definition: ModuleType.h:197
Definition: ModuleType.h:235
Definition: ModuleType.h:121
Definition: ModuleType.h:149
Definition: ModuleType.h:18
Definition: ModuleType.h:81
Definition: ModuleType.h:153
Definition: ModuleType.h:145
Definition: ModuleType.h:25
Definition: CustomTypeID.h:11
Definition: ModuleType.h:190
Definition: ModuleType.h:226
Definition: ModuleType.h:94
Definition: ModuleType.h:103
Definition: ModuleType.h:136
Definition: ModuleType.h:157
Definition: ModuleType.h:265
Definition: ModuleType.h:196
Definition: ModuleType.h:99
Definition: ModuleType.h:113
Definition: ModuleType.h:63
Definition: ModuleType.h:125
Definition: ModuleType.h:35
Definition: ModuleType.h:212
std::map< Raw, std::string > ValueMap
Definition: Enum.h:20
Definition: ModuleType.h:108
Definition: ModuleType.h:68
Definition: ModuleType.h:86
Definition: ModuleType.h:202
Definition: ModuleType.h:240