Conditional compilation for standalone and OpenStudio specific code is controlled by the ISOMODEL_STANDALONE
preprocessor definition which is set in the standalone CMakeLists.txt with this command: add_definitions(-DISOMODEL_STANDALONE)
.
Here are some examples of wrapping standalone and OpenStudio specific code:
#!c++
#ifdef ISOMODEL_STANDALONE
// Standalone specific code.
#endif
#!c++
#ifdef ISOMODEL_STANDALONE
// Standalone specific code.
#else
// OpenStudio specific code.
#endif
#!c++
#ifndef ISOMODEL_STANDALONE
// OpenStudio specific code.
#endif
- Source: IsoModel/src
- Tests: IsoModel/src/Test
- Test data: IsoModel/test_data
- Source: openstudiocore/src/isomodel
- Tests: openstudiocore/src/isomodel/Test
- Test data: openstudiocore/resources/isomodel
- Building.cpp
- Building.hpp
- Cooling.cpp
- Cooling.hpp
- EpwData.cpp
- EpwData.hpp
- Heating.cpp
- Heating.hpp
- HourlyModel.cpp
- HourlyModel.hpp
- ISOModelAPI.hpp
- ISOResults.cpp
- ISOResults.hpp
- Lighting.cpp
- Lighting.hpp
- Location.hpp
- Location.cpp
- mainpage.hpp (Doxygen mainpage)
- MonthlyModel.cpp
- MonthlyModel.hpp
- PhysicalQuantities.cpp
- PhysicalQuantities.hpp
- Population.cpp
- Population.hpp
- Simulation.cpp
- Simulation.hpp
- SimulationSettings.cpp
- SimulationSettings.hpp
- SolarRadiation.cpp
- SolarRadiation.hpp
- Structure.cpp
- Structure.hpp
- TimeFrame.cpp
- TimeFrame.hpp
- UserModel.cpp
- UserModel.hpp
- Ventilation.hpp
- Ventilation.cpp
- WeatherData.cpp
- WeatherData.hpp
- Test/HourlyModel_Gtest.cpp
- Test/ISOModelFixture.cpp
- Test/ISOModelFixture.hpp
- Test/MonthlyModel_GTest.cpp
- Test/Properties_GTest.cpp
- Test/SolarRadiation_GTest.cpp
- Test/TimeFrame_GTest.cpp
- Test/UserModel_GTest.cpp
- CMakeLists.txt (standalone version)
- EndUses.hpp (stands in for OpenStudio's EndUses class)
- Matrix.hpp (stands in for OpenStudio's Matrix class)
- standalone_main.cpp
- Vector.hpp (stands in for OpenStudio's Vector class).
- Test/ISOModel_Benchmark.cpp
- Test/ISOModel_GTest.cpp
- Test/solar_debug.cpp
- CMakeLists.txt (OpenStudio version)
- ForwardTranslator.cpp
- ForwardTranslator.hpp
- ISOModel.i (swig)
- Test/ForwardTranslator_GTest.cpp