GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 0.0% 0 / 0 / 1
Functions: 0.0% 0 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/CurrencyType_Impl.hpp
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 #ifndef MODEL_CURRENCYTYPE_IMPL_HPP
7 #define MODEL_CURRENCYTYPE_IMPL_HPP
8
9 #include "ParentObject_Impl.hpp"
10 #include "CurrencyType.hpp"
11
12 #include "../utilities/core/Optional.hpp"
13
14 namespace openstudio {
15 namespace model {
16 namespace detail {
17
18 class MODEL_API CurrencyType_Impl : public ParentObject_Impl
19 {
20 public:
21 // constructor
22 CurrencyType_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
23
24 // construct from workspace
25 CurrencyType_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
26
27 // clone copy constructor
28 CurrencyType_Impl(const CurrencyType_Impl& other, Model_Impl* model, bool keepHandle);
29
30 // virtual destructor
31 ✗ virtual ~CurrencyType_Impl() override = default;
32
33 OptionalString monetaryUnit() const;
34 bool setMonetaryUnit(const std::string& str);
35
36 // return the parent object in the hierarchy
37 virtual boost::optional<ParentObject> parent() const override;
38
39 // set the parent, child may have to call methods on the parent
40 virtual bool setParent(ParentObject& newParent) override;
41
42 // return any children objects in the hierarchy
43 virtual std::vector<ModelObject> children() const override;
44
45 /// get a vector of allowable children types
46 virtual std::vector<IddObjectType> allowableChildTypes() const override;
47
48 // Get all output variable names that could be associated with this object.
49 virtual const std::vector<std::string>& outputVariableNames() const override;
50
51 virtual IddObjectType iddObjectType() const override;
52
53 private:
54 REGISTER_LOGGER("openstudio.model.CurrencyType");
55 };
56
57 } // namespace detail
58 } // namespace model
59 } // namespace openstudio
60
61 #endif // MODEL_CURRENCYTYPE_IMPL_HPP
62