#include <WorkflowStepResult.hpp>
Public Member Functions | |
Getters | |
| std::string | name () const |
| std::string | displayName () const |
| boost::optional< std::string > | units () const |
| VariantType | variantType () const |
| get the variant value type | |
| Variant | valueAsVariant () const |
| get value as a Variant | |
| bool | valueAsBoolean () const |
| get value as a bool | |
| int | valueAsInteger () const |
| get value as int | |
| double | valueAsDouble () const |
| get value as double | |
| std::string | valueAsString () const |
| get value as string | |
| Json::Value | valueAsJSON () const |
Constructors and Destructors | |
| WorkflowStepValue (const std::string &name, const Variant &value) | |
| WorkflowStepValue (const std::string &name, const std::string &value) | |
| WorkflowStepValue (const std::string &name, const char *value) | |
| WorkflowStepValue (const std::string &name, double value) | |
| WorkflowStepValue (const std::string &name, int value) | |
| WorkflowStepValue (const std::string &name, bool value) | |
| Json::Value | toJSON () const |
| std::string | string () const |
| Serialize to JSON formatted string. | |
| static boost::optional< WorkflowStepValue > | fromString (const std::string &s) |
| Construct from JSON formatted string. | |
Setters | |
| void | setName (const std::string &name) |
| void | setDisplayName (const std::string &displayName) |
| void | resetDisplayName () |
| void | setUnits (const std::string &units) |
| void | resetUnits () |
| WorkflowStepValue (std::shared_ptr< detail::WorkflowStepValue_Impl > impl) | |
| Protected constructor from impl. | |
Class for storing a value set by OSRunner::registerValue.
| openstudio::WorkflowStepValue::WorkflowStepValue | ( | const std::string & | name, |
| const Variant & | value ) |
| openstudio::WorkflowStepValue::WorkflowStepValue | ( | const std::string & | name, |
| const std::string & | value ) |
| openstudio::WorkflowStepValue::WorkflowStepValue | ( | const std::string & | name, |
| const char * | value ) |
| openstudio::WorkflowStepValue::WorkflowStepValue | ( | const std::string & | name, |
| double | value ) |
| openstudio::WorkflowStepValue::WorkflowStepValue | ( | const std::string & | name, |
| int | value ) |
| openstudio::WorkflowStepValue::WorkflowStepValue | ( | const std::string & | name, |
| bool | value ) |
|
protected |
Protected constructor from impl.
| std::string openstudio::WorkflowStepValue::displayName | ( | ) | const |
|
static |
Construct from JSON formatted string.
| std::string openstudio::WorkflowStepValue::name | ( | ) | const |
| void openstudio::WorkflowStepValue::resetDisplayName | ( | ) |
| void openstudio::WorkflowStepValue::resetUnits | ( | ) |
| void openstudio::WorkflowStepValue::setDisplayName | ( | const std::string & | displayName | ) |
| void openstudio::WorkflowStepValue::setName | ( | const std::string & | name | ) |
| void openstudio::WorkflowStepValue::setUnits | ( | const std::string & | units | ) |
| std::string openstudio::WorkflowStepValue::string | ( | ) | const |
Serialize to JSON formatted string.
| Json::Value openstudio::WorkflowStepValue::toJSON | ( | ) | const |
| boost::optional< std::string > openstudio::WorkflowStepValue::units | ( | ) | const |
| bool openstudio::WorkflowStepValue::valueAsBoolean | ( | ) | const |
get value as a bool
| double openstudio::WorkflowStepValue::valueAsDouble | ( | ) | const |
get value as double
| int openstudio::WorkflowStepValue::valueAsInteger | ( | ) | const |
get value as int
| Json::Value openstudio::WorkflowStepValue::valueAsJSON | ( | ) | const |
| std::string openstudio::WorkflowStepValue::valueAsString | ( | ) | const |
get value as string
| VariantType openstudio::WorkflowStepValue::variantType | ( | ) | const |
get the variant value type