OpenStudio:utilities
 AllClasses Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages

#include "WorkflowStep.hpp"

Inheritance diagram for openstudio::WorkflowStep:

Public Member Functions

template<typename T >
cast () const
bool operator== (const WorkflowStep &other) const
template<typename T >
boost::optional< T > optionalCast () const
void resetResult ()
boost::optional
< WorkflowStepResult
result () const
void setResult (const WorkflowStepResult &result)
std::string string () const
virtual ~WorkflowStep ()

Static Public Member Functions

static boost::optional
< WorkflowStep
fromString (const std::string &s)

Protected Member Functions

 WorkflowStep (std::shared_ptr< detail::WorkflowStep_Impl > impl)

Detailed Description

Base class for defining a step in an OpenStudio Workflow.

Constructor & Destructor Documentation

virtual openstudio::WorkflowStep::~WorkflowStep ( )
virtual
openstudio::WorkflowStep::WorkflowStep ( std::shared_ptr< detail::WorkflowStep_Impl >  impl)
protected

Protected constructor from impl.

Member Function Documentation

template<typename T >
T openstudio::WorkflowStep::cast ( ) const
inline

cast to type T, can throw std::bad_cast

static boost::optional<WorkflowStep> openstudio::WorkflowStep::fromString ( const std::string &  s)
static

Construct from JSON formatted string.

bool openstudio::WorkflowStep::operator== ( const WorkflowStep other) const

Tests pointer equality.

template<typename T >
boost::optional<T> openstudio::WorkflowStep::optionalCast ( ) const
inline

cast to optional of type T

void openstudio::WorkflowStep::resetResult ( )

Resets the optional WorkflowStepResult.

boost::optional<WorkflowStepResult> openstudio::WorkflowStep::result ( ) const

Returns the optional WorkflowStepResult.

void openstudio::WorkflowStep::setResult ( const WorkflowStepResult result)

Sets the optional WorkflowStepResult.

std::string openstudio::WorkflowStep::string ( ) const

Serialize to JSON formatted string.