OpenStudioCore:ruleset
 All Classes Namespaces Functions Typedefs Enumerations Enumerator Pages
Public Member Functions | Related Functions | List of all members
openstudio::ruleset::RubyUserScriptArgumentGetter Class Referenceabstract

#include <RubyUserScriptArgumentGetter.hpp>

+ Inheritance diagram for openstudio::ruleset::RubyUserScriptArgumentGetter:

Public Member Functions

virtual std::vector< OSArgumentgetArguments (const BCLMeasure &measure)=0
 
virtual std::vector< OSArgumentgetArguments (const BCLMeasure &measure, const Workspace &workspace)=0
 Use this method to pass in a (EnergyPlus) Workspace or a (OpenStudio) Model. More...
 
virtual std::vector< OSArgumentgetArguments (const BCLMeasure &measure, const model::Model &model, const Workspace &workspace)=0
 
std::vector< OSArgumentgetArguments (const BCLMeasure &measure, const boost::optional< model::Model > &model, const boost::optional< Workspace > &workspace)
 
virtual ~RubyUserScriptArgumentGetter ()
 

Related Functions

(Note that these are not member functions.)

std::string argumentExtractorRubyFunction ()
 Non-member function that returns Ruby code text for retrieving arguments from a BCLMeasure. More...
 

Detailed Description

Interface class for using embedded Ruby to extract arguments from a Ruby measure (UserScript).

See the documentation for detail::RubyUserScriptArgumentGetter_Impl and src/ruleset/test/EmbeddedRuby_GTest.cpp for this use case. If your application is written in Ruby, this functionality is available through non-member helper function OpenStudio::Ruleset::getArguments(BCLMeasure), see ruby/openstudio/ruleset/test/RubyUserScriptArgumentGetter_Test.rb for an example.

Deprecated:
in preference to RubyUserScriptInfoGetter

Constructor & Destructor Documentation

virtual openstudio::ruleset::RubyUserScriptArgumentGetter::~RubyUserScriptArgumentGetter ( )
virtual

Member Function Documentation

virtual std::vector<OSArgument> openstudio::ruleset::RubyUserScriptArgumentGetter::getArguments ( const BCLMeasure &  measure)
pure virtual
virtual std::vector<OSArgument> openstudio::ruleset::RubyUserScriptArgumentGetter::getArguments ( const BCLMeasure &  measure,
const Workspace &  workspace 
)
pure virtual

Use this method to pass in a (EnergyPlus) Workspace or a (OpenStudio) Model.

Implemented in openstudio::ruleset::EmbeddedRubyUserScriptArgumentGetter< RubyInterpreterType >.

virtual std::vector<OSArgument> openstudio::ruleset::RubyUserScriptArgumentGetter::getArguments ( const BCLMeasure &  measure,
const model::Model &  model,
const Workspace &  workspace 
)
pure virtual
std::vector<OSArgument> openstudio::ruleset::RubyUserScriptArgumentGetter::getArguments ( const BCLMeasure &  measure,
const boost::optional< model::Model > &  model,
const boost::optional< Workspace > &  workspace 
)

Friends And Related Function Documentation

std::string argumentExtractorRubyFunction ( )
related

Non-member function that returns Ruby code text for retrieving arguments from a BCLMeasure.

This function is used by both the embedded Ruby (RubyScriptArgumentGetter) and native Ruby (OpenStudio::Ruleset::getArguments) implementations of the functionality, such that either usage pathway should produce identical results.