GCC Code Coverage Report


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

src/utilities/floorspace/FSVisitor.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_FLOORSPACE_FSVISITOR_HPP
7 #define UTILITIES_FLOORSPACE_FSVISITOR_HPP
8
9 #include "../UtilitiesAPI.hpp"
10
11 namespace openstudio {
12
13 // forward declaration
14 class FSBuildingUnit;
15 class FSBuildingType;
16 class FSConfig;
17 class FSConstructionSet;
18 class FSDaylightingControl;
19 class FSDaylightingControlDefinition;
20 class FSDoor;
21 class FSDoorDefinition;
22 class FSGround;
23 class FSModel;
24 class FSProject;
25 class FSShading;
26 class FSSpace;
27 class FSSpaceType;
28 class FSStory;
29 class FSThermalZone;
30 class FSWindow;
31 class FSWindowDefinition;
32
33 class UTILITIES_API FSVisitor
34 {
35 public:
36 virtual void Dispatch(const FSBuildingUnit& entity) = 0;
37 virtual void Dispatch(const FSBuildingType& entity) = 0;
38 virtual void Dispatch(const FSConfig& entity) = 0;
39 virtual void Dispatch(const FSConstructionSet& entity) = 0;
40 virtual void Dispatch(const FSDaylightingControl& entity) = 0;
41 virtual void Dispatch(const FSDaylightingControlDefinition& entity) = 0;
42 virtual void Dispatch(const FSDoor& entity) = 0;
43 virtual void Dispatch(const FSDoorDefinition& entity) = 0;
44 virtual void Dispatch(const FSGround& entity) = 0;
45 virtual void Dispatch(const FSModel& entity) = 0;
46 virtual void Dispatch(const FSProject& entity) = 0;
47 virtual void Dispatch(const FSShading& entity) = 0;
48 virtual void Dispatch(const FSSpace& entity) = 0;
49 virtual void Dispatch(const FSSpaceType& entity) = 0;
50 virtual void Dispatch(const FSStory& entity) = 0;
51 virtual void Dispatch(const FSThermalZone& entity) = 0;
52 virtual void Dispatch(const FSWindow& entity) = 0;
53 virtual void Dispatch(const FSWindowDefinition& entity) = 0;
54
55 29 virtual ~FSVisitor() = default;
56 };
57
58 // All visitable classes must implement the Accept method
59 class UTILITIES_API FSDispatchable
60 {
61 public:
62 virtual void Accept(FSVisitor& visitor) const = 0;
63 221431 virtual ~FSDispatchable() = default;
64 };
65
66 } // namespace openstudio
67 #endif
68