-
Notifications
You must be signed in to change notification settings - Fork 222
Addresses #4615, wrap OutputControl:Table:Style and Output:SQLite #4625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a3f215a
Add to idd.
joseph-robertson a4d8d98
Stub model tests.
joseph-robertson 7efe6b7
Update model resource files.
joseph-robertson c5039ae
Stub source files.
joseph-robertson 1163bfd
Add temp fixmes to ft.
joseph-robertson 3ab7e77
Formatting.
joseph-robertson 11ec776
Update eplus resource files.
joseph-robertson b2fa8b5
Stub ft and rt tests.
joseph-robertson a5f59b2
Stub new ft and rt source files.
joseph-robertson a7d1d14
Formatting.
joseph-robertson 6d92dd8
Fix typos in cmakelists.
joseph-robertson 2f69289
Typo in rt.
joseph-robertson b66131b
Typo is model impl hpp.
joseph-robertson a19066c
Fill out methods.
joseph-robertson 65d9718
Missing iddfactory include.
joseph-robertson 98becd0
Fill out model tests.
joseph-robertson 37498f0
Fill out ft.
joseph-robertson 5290659
Fill out rt.
joseph-robertson c1ee298
Fill out ft and rt tests.
joseph-robertson 15d0dc5
Typos in rt tests.
joseph-robertson 591518e
Update ft for default output control.
joseph-robertson bbede6e
Fix syntax.
joseph-robertson 5cedc7e
More ft fixes.
joseph-robertson 40905e2
Include typo.
joseph-robertson 45e81e4
Pass model into createStandardOutputRequests.
joseph-robertson 591bf84
Update ft hpp.
joseph-robertson 3c33c84
Typo in modelsimulation.
joseph-robertson 252d99d
Merge branch 'develop' into output-control
joseph-robertson d2f82e3
Respond to review.
joseph-robertson dc3b8e5
Missing arg in ft create method.
joseph-robertson 1fe21a8
Update model test.
joseph-robertson 499f716
Improve ft tests for various scenarios.
joseph-robertson 1d4df04
Typo in ft test.
joseph-robertson b3e1bb8
Try not returning default.
joseph-robertson ea82c4a
Include asserts in ctors.
joseph-robertson 979cc26
fixup unit tests
jmarrec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/energyplus/ForwardTranslator/ForwardTranslateOutputControlTableStyle.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| /*********************************************************************************************************************** | ||
| * OpenStudio(R), Copyright (c) 2008-2022, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the | ||
| * following conditions are met: | ||
| * | ||
| * (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following | ||
| * disclaimer. | ||
| * | ||
| * (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following | ||
| * disclaimer in the documentation and/or other materials provided with the distribution. | ||
| * | ||
| * (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote products | ||
| * derived from this software without specific prior written permission from the respective party. | ||
| * | ||
| * (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative works | ||
| * may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without specific prior | ||
| * written permission from Alliance for Sustainable Energy, LLC. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, | ||
| * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED | ||
| * STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
| * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| ***********************************************************************************************************************/ | ||
|
|
||
| #include "../ForwardTranslator.hpp" | ||
| #include "../../model/Model.hpp" | ||
| #include "../../model/OutputControlTableStyle.hpp" | ||
| #include <utilities/idd/OutputControl_Table_Style_FieldEnums.hxx> | ||
| #include "../../utilities/idd/IddEnums.hpp" | ||
| #include <utilities/idd/IddEnums.hxx> | ||
| #include <utilities/idd/IddFactory.hxx> | ||
|
|
||
| using namespace openstudio::model; | ||
|
|
||
| using namespace std; | ||
|
|
||
| namespace openstudio { | ||
|
|
||
| namespace energyplus { | ||
|
|
||
| boost::optional<IdfObject> ForwardTranslator::translateOutputControlTableStyle(OutputControlTableStyle& modelObject) { | ||
|
|
||
| IdfObject idfObject = createAndRegisterIdfObject(openstudio::IddObjectType::OutputControl_Table_Style, modelObject); | ||
|
|
||
| idfObject.setString(OutputControl_Table_StyleFields::ColumnSeparator, modelObject.columnSeparator()); | ||
|
|
||
| idfObject.setString(OutputControl_Table_StyleFields::UnitConversion, modelObject.unitConversion()); | ||
|
|
||
| return idfObject; | ||
| } | ||
|
|
||
| } // namespace energyplus | ||
|
|
||
| } // namespace openstudio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.