src/energyplus/ForwardTranslator/ForwardTranslateOutputSQLite.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "../ForwardTranslator.hpp" | ||
| 7 | #include "../../model/Model.hpp" | ||
| 8 | |||
| 9 | #include "../../model/OutputSQLite.hpp" | ||
| 10 | |||
| 11 | #include <utilities/idd/Output_SQLite_FieldEnums.hxx> | ||
| 12 | // #include "../../utilities/idd/IddEnums.hpp" | ||
| 13 | #include <utilities/idd/IddEnums.hxx> | ||
| 14 | |||
| 15 | using namespace openstudio::model; | ||
| 16 | |||
| 17 | namespace openstudio { | ||
| 18 | |||
| 19 | namespace energyplus { | ||
| 20 | |||
| 21 | 3 | boost::optional<IdfObject> ForwardTranslator::translateOutputSQLite(model::OutputSQLite& modelObject) { | |
| 22 | |||
| 23 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | IdfObject idfObject = createAndRegisterIdfObject(openstudio::IddObjectType::Output_SQLite, modelObject); |
| 24 | |||
| 25 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(Output_SQLiteFields::OptionType, modelObject.optionType()); |
| 26 | |||
| 27 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(Output_SQLiteFields::UnitConversionforTabularData, modelObject.unitConversionforTabularData()); |
| 28 | |||
| 29 |
1/1✓ Branch 1 taken 3 times.
|
6 | return idfObject; |
| 30 | 3 | } // End of translate function | |
| 31 | |||
| 32 | } // end namespace energyplus | ||
| 33 | } // end namespace openstudio | ||
| 34 |