File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -220,14 +220,19 @@ class PortInfo
220
220
221
221
void setDescription (StringView description);
222
222
223
+ void setDefaultValue (StringView default_value_as_string);
224
+
223
225
const std::string& description () const ;
224
226
227
+ const std::string& defaultValue () const ;
228
+
225
229
private:
226
230
227
231
PortDirection _type;
228
232
const std::type_info* _info;
229
233
StringConverter _converter;
230
234
std::string description_;
235
+ std::string default_value_;
231
236
};
232
237
233
238
template <typename T = void >
Original file line number Diff line number Diff line change @@ -254,11 +254,21 @@ void PortInfo::setDescription(StringView description)
254
254
description_ = description.to_string ();
255
255
}
256
256
257
+ void PortInfo::setDefaultValue (StringView default_value_as_string)
258
+ {
259
+ default_value_ = default_value_as_string.to_string ();
260
+ }
261
+
257
262
const std::string &PortInfo::description () const
258
263
{
259
264
return description_;
260
265
}
261
266
267
+ const std::string &PortInfo::defaultValue () const
268
+ {
269
+ return default_value_;
270
+ }
271
+
262
272
const char *toStr (PortDirection type)
263
273
{
264
274
switch (type)
You can’t perform that action at this time.
0 commit comments