GCC Code Coverage Report


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

src/utilities/idd/IddKey_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 UTILITIES_IDD_IDDKEY_IMPL_HPP
7 #define UTILITIES_IDD_IDDKEY_IMPL_HPP
8
9 #include "../UtilitiesAPI.hpp"
10
11 #include "IddKeyProperties.hpp"
12
13 #include "../core/Logger.hpp"
14
15 #include <string>
16 #include <ostream>
17
18 namespace openstudio {
19
20 // private namespace
21 namespace detail {
22
23 /** Implementation class for IddKey. */
24 class UTILITIES_API IddKey_Impl
25 {
26 public:
27 /// default constructor for serialization
28 IddKey_Impl();
29
30 /// equality operator
31 bool operator==(const IddKey_Impl& other) const;
32
33 /// get name
34 std::string name() const;
35
36 /// get properties
37 const IddKeyProperties& properties() const;
38
39 /// load by parsing text
40 static std::shared_ptr<IddKey_Impl> load(const std::string& name, const std::string& text);
41
42 /// print idd
43 std::ostream& print(std::ostream& os) const;
44
45 private:
46 /// partial constructor used by load
47 IddKey_Impl(const std::string& name);
48
49 // parse
50 void parse(const std::string& text);
51
52 // name
53 std::string m_name;
54
55 // properties
56 IddKeyProperties m_properties;
57
58 // configure logging
59 − REGISTER_LOGGER("utilities.idd.IddKey");
60 };
61
62 } // namespace detail
63
64 } // namespace openstudio
65
66 #endif // UTILITIES_IDD_IDDKEY_IMPL_HPP
67