Exemplo n.º 1
0
void OSRunner::prepareForUserScriptRun(const UserScript& userScript) {
    m_result = OSResult();
    m_measureName = userScript.name();
    std::stringstream ss;
    ss << "openstudio.ruleset." << m_measureName;
    m_channel = ss.str();
}
Exemplo n.º 2
0
bool UserScript::operator==(const UserScript &other) const
{
    if (isNull() != other.isNull())
        return false;
    if (isNull()) // neither is valid
        return true;
    return worldId() == other.worldId()
            && runsOnSubFrames() == other.runsOnSubFrames()
            && injectionPoint() == other.injectionPoint()
            && name() == other.name() && sourceCode() == other.sourceCode();
}