Skip to content

Commit

Permalink
Try exhaust system as hvaccomponent.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Jan 16, 2025
1 parent 5b956bf commit f9c5aa5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
11 changes: 5 additions & 6 deletions src/model/AirLoopHVACExhaustSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ namespace model {
namespace detail {

AirLoopHVACExhaustSystem_Impl::AirLoopHVACExhaustSystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
: StraightComponent_Impl(idfObject, model, keepHandle) {
: HVACComponent_Impl(idfObject, model, keepHandle) {
OS_ASSERT(idfObject.iddObject().type() == AirLoopHVACExhaustSystem::iddObjectType());
}

AirLoopHVACExhaustSystem_Impl::AirLoopHVACExhaustSystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
bool keepHandle)
: StraightComponent_Impl(other, model, keepHandle) {
: HVACComponent_Impl(other, model, keepHandle) {
OS_ASSERT(other.iddObject().type() == AirLoopHVACExhaustSystem::iddObjectType());
}

AirLoopHVACExhaustSystem_Impl::AirLoopHVACExhaustSystem_Impl(const AirLoopHVACExhaustSystem_Impl& other, Model_Impl* model, bool keepHandle)
: StraightComponent_Impl(other, model, keepHandle) {}
: HVACComponent_Impl(other, model, keepHandle) {}

const std::vector<std::string>& AirLoopHVACExhaustSystem_Impl::outputVariableNames() const {
static std::vector<std::string> result;
Expand Down Expand Up @@ -106,7 +106,7 @@ namespace model {

} // namespace detail

AirLoopHVACExhaustSystem::AirLoopHVACExhaustSystem(const Model& model) : StraightComponent(AirLoopHVACExhaustSystem::iddObjectType(), model) {
AirLoopHVACExhaustSystem::AirLoopHVACExhaustSystem(const Model& model) : HVACComponent(AirLoopHVACExhaustSystem::iddObjectType(), model) {
OS_ASSERT(getImpl<detail::AirLoopHVACExhaustSystem_Impl>());

bool ok = true;
Expand All @@ -130,8 +130,7 @@ namespace model {
}

/// @cond
AirLoopHVACExhaustSystem::AirLoopHVACExhaustSystem(std::shared_ptr<detail::AirLoopHVACExhaustSystem_Impl> impl)
: StraightComponent(std::move(impl)) {}
AirLoopHVACExhaustSystem::AirLoopHVACExhaustSystem(std::shared_ptr<detail::AirLoopHVACExhaustSystem_Impl> impl) : HVACComponent(std::move(impl)) {}
/// @endcond

} // namespace model
Expand Down
6 changes: 3 additions & 3 deletions src/model/AirLoopHVACExhaustSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define MODEL_AIRLOOPHVACEXHAUSTSYSTEM_HPP

#include <model/ModelAPI.hpp>
#include "StraightComponent.hpp"
#include "HVACComponent.hpp"

namespace openstudio {
namespace model {
Expand All @@ -44,8 +44,8 @@ namespace model {

} // namespace detail

/** AirLoopHVACExhaustSystem is a StraightComponent that wraps the OpenStudio IDD object 'OS:AirLoopHVAC:ExhaustSystem'. */
class MODEL_API AirLoopHVACExhaustSystem : public StraightComponent
/** AirLoopHVACExhaustSystem is a HVACComponent that wraps the OpenStudio IDD object 'OS:AirLoopHVAC:ExhaustSystem'. */
class MODEL_API AirLoopHVACExhaustSystem : public HVACComponent
{
public:
/** @name Constructors and Destructors */
Expand Down
6 changes: 3 additions & 3 deletions src/model/AirLoopHVACExhaustSystem_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define MODEL_AIRLOOPHVACEXHAUSTSYSTEM_IMPL_HPP

#include <model/ModelAPI.hpp>
#include "StraightComponent_Impl.hpp"
#include "HVACComponent_Impl.hpp"

namespace openstudio {
namespace model {
Expand All @@ -40,8 +40,8 @@ namespace model {

namespace detail {

/** AirLoopHVACExhaustSystem_Impl is a StraightComponent_Impl that is the implementation class for AirLoopHVACExhaustSystem.*/
class MODEL_API AirLoopHVACExhaustSystem_Impl : public StraightComponent_Impl
/** AirLoopHVACExhaustSystem_Impl is a HVACComponent_Impl that is the implementation class for AirLoopHVACExhaustSystem.*/
class MODEL_API AirLoopHVACExhaustSystem_Impl : public HVACComponent_Impl
{
public:
/** @name Constructors and Destructors */
Expand Down

0 comments on commit f9c5aa5

Please sign in to comment.