Line data Source code
1 : // EnergyPlus, Copyright (c) 1996-2023, The Board of Trustees of the University of Illinois,
2 : // The Regents of the University of California, through Lawrence Berkeley National Laboratory
3 : // (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
4 : // National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
5 : // contributors. All rights reserved.
6 : //
7 : // NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
8 : // U.S. Government consequently retains certain rights. As such, the U.S. Government has been
9 : // granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable,
10 : // worldwide license in the Software to reproduce, distribute copies to the public, prepare
11 : // derivative works, and perform publicly and display publicly, and to permit others to do so.
12 : //
13 : // Redistribution and use in source and binary forms, with or without modification, are permitted
14 : // provided that the following conditions are met:
15 : //
16 : // (1) Redistributions of source code must retain the above copyright notice, this list of
17 : // conditions and the following disclaimer.
18 : //
19 : // (2) Redistributions in binary form must reproduce the above copyright notice, this list of
20 : // conditions and the following disclaimer in the documentation and/or other materials
21 : // provided with the distribution.
22 : //
23 : // (3) Neither the name of the University of California, Lawrence Berkeley National Laboratory,
24 : // the University of Illinois, U.S. Dept. of Energy nor the names of its contributors may be
25 : // used to endorse or promote products derived from this software without specific prior
26 : // written permission.
27 : //
28 : // (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in stand-alone form
29 : // without changes from the version obtained under this License, or (ii) Licensee makes a
30 : // reference solely to the software portion of its product, Licensee must refer to the
31 : // software as "EnergyPlus version X" software, where "X" is the version number Licensee
32 : // obtained under this License and may not use a different name for the software. Except as
33 : // specifically required in this Section (4), Licensee shall not use in a company name, a
34 : // product name, in advertising, publicity, or other promotional activities any name, trade
35 : // name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
36 : // similar designation, without the U.S. Department of Energy's prior written consent.
37 : //
38 : // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
39 : // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
40 : // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
41 : // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
42 : // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43 : // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
44 : // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
45 : // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 : // POSSIBILITY OF SUCH DAMAGE.
47 :
48 : #ifndef EnergyPlus_hh_INCLUDED
49 : #define EnergyPlus_hh_INCLUDED
50 :
51 : // EnergyPlus Project-Wide Header File
52 : //
53 : // Language: C++
54 :
55 : // C++ Headers
56 : #include <cassert>
57 : #include <cstdint> // C++11
58 : #include <stdexcept>
59 :
60 : #include <EnergyPlus/api/TypeDefs.h>
61 :
62 : namespace EnergyPlus {
63 2 : class FatalError : public std::runtime_error
64 : {
65 : public:
66 2 : FatalError(std::string const &msg) : runtime_error(msg)
67 : {
68 2 : }
69 : };
70 : } // namespace EnergyPlus
71 :
72 : // macro to guarantee array sizing in debug builds
73 : #define EP_SIZE_CHECK(array, min_size) \
74 : assert(min_size >= 0); \
75 : assert(array.size() >= (size_t)min_size)
76 :
77 : typedef std::int32_t Int32;
78 : typedef std::int64_t Int64;
79 :
80 : // ObjexxFCL
81 : #include <ObjexxFCL/Array1.fwd.hh>
82 : #include <ObjexxFCL/Array1A.fwd.hh>
83 : #include <ObjexxFCL/Array1D.fwd.hh>
84 : #include <ObjexxFCL/Array1S.fwd.hh>
85 : #include <ObjexxFCL/Array2.fwd.hh>
86 : #include <ObjexxFCL/Array2A.fwd.hh>
87 : #include <ObjexxFCL/Array2D.fwd.hh>
88 : #include <ObjexxFCL/Array2S.fwd.hh>
89 : #include <ObjexxFCL/Array3D.fwd.hh>
90 : #include <ObjexxFCL/Array4D.fwd.hh>
91 : #include <ObjexxFCL/Array5D.fwd.hh>
92 : #include <ObjexxFCL/MArray1.fwd.hh>
93 : #include <ObjexxFCL/Omit.hh>
94 : #include <ObjexxFCL/Optional.fwd.hh>
95 : #include <ObjexxFCL/Reference.fwd.hh>
96 : #include <ObjexxFCL/Vector2.fwd.hh>
97 : #include <ObjexxFCL/Vector3.fwd.hh>
98 : #include <ObjexxFCL/Vector4.fwd.hh>
99 :
100 : using ObjexxFCL::_;
101 :
102 : using ObjexxFCL::Array1;
103 : using ObjexxFCL::Array1_int;
104 : using ObjexxFCL::Array1_string;
105 : using ObjexxFCL::Array1A;
106 : using ObjexxFCL::Array1A_int;
107 : using ObjexxFCL::Array1D;
108 : using ObjexxFCL::Array1D_bool;
109 : using ObjexxFCL::Array1D_double;
110 : using ObjexxFCL::Array1D_int;
111 : using ObjexxFCL::Array1D_string;
112 : using ObjexxFCL::Array1S;
113 : using ObjexxFCL::Array1S_bool;
114 : using ObjexxFCL::Array1S_int;
115 : using ObjexxFCL::Array1S_string;
116 : using ObjexxFCL::Array2;
117 : using ObjexxFCL::Array2_int;
118 : using ObjexxFCL::Array2A;
119 : using ObjexxFCL::Array2A_bool;
120 : using ObjexxFCL::Array2A_int;
121 : using ObjexxFCL::Array2D;
122 : using ObjexxFCL::Array2D_bool;
123 : using ObjexxFCL::Array2D_int;
124 : using ObjexxFCL::Array2D_string;
125 : using ObjexxFCL::Array2S;
126 : using ObjexxFCL::Array2S_bool;
127 : using ObjexxFCL::Array2S_int;
128 : using ObjexxFCL::Array2S_string;
129 : using ObjexxFCL::Array3D;
130 : using ObjexxFCL::Array3D_bool;
131 : using ObjexxFCL::Array3D_int;
132 : using ObjexxFCL::Array4D;
133 : using ObjexxFCL::Array4D_int;
134 : using ObjexxFCL::Array5D;
135 : using ObjexxFCL::MArray1;
136 : using ObjexxFCL::Optional;
137 : using ObjexxFCL::Optional_bool;
138 : using ObjexxFCL::Optional_bool_const;
139 : using ObjexxFCL::Optional_int;
140 : using ObjexxFCL::Optional_int_const;
141 : using ObjexxFCL::Optional_string;
142 : using ObjexxFCL::Optional_string_const;
143 : using ObjexxFCL::Reference;
144 : using ObjexxFCL::Vector2;
145 : using ObjexxFCL::Vector3;
146 : using ObjexxFCL::Vector4;
147 :
148 : // ObjexxFCL Functions
149 : #include <ObjexxFCL/Array.functions.hh>
150 : #include <ObjexxFCL/Fmath.hh>
151 : #include <ObjexxFCL/environment.hh>
152 : #include <ObjexxFCL/floops.hh>
153 : #include <ObjexxFCL/numeric.hh>
154 : #include <ObjexxFCL/random.hh>
155 : #include <ObjexxFCL/string.functions.hh>
156 : #include <ObjexxFCL/time.hh>
157 :
158 : using ObjexxFCL::CEILING;
159 : using ObjexxFCL::equali;
160 : using ObjexxFCL::floop_end;
161 : using ObjexxFCL::get_environment_variable;
162 : using ObjexxFCL::has;
163 : using ObjexxFCL::has_any_of;
164 : using ObjexxFCL::has_prefix;
165 : using ObjexxFCL::has_prefixi;
166 : using ObjexxFCL::hasi;
167 : using ObjexxFCL::HUGE_;
168 : using ObjexxFCL::index;
169 : using ObjexxFCL::is_any_of;
170 : using ObjexxFCL::is_blank;
171 : using ObjexxFCL::len;
172 : using ObjexxFCL::len_trim;
173 : using ObjexxFCL::lessthani;
174 : using ObjexxFCL::ljustified;
175 : using ObjexxFCL::max;
176 : using ObjexxFCL::min;
177 : using ObjexxFCL::mod;
178 : using ObjexxFCL::nint;
179 : using ObjexxFCL::nint64;
180 : using ObjexxFCL::not_blank;
181 : using ObjexxFCL::pare;
182 : using ObjexxFCL::pow_2;
183 : using ObjexxFCL::pow_3;
184 : using ObjexxFCL::pow_4;
185 : using ObjexxFCL::pow_5;
186 : using ObjexxFCL::pow_6;
187 : using ObjexxFCL::pow_7;
188 : using ObjexxFCL::RANDOM_NUMBER;
189 : using ObjexxFCL::RANDOM_SEED;
190 : using ObjexxFCL::rjustified;
191 : using ObjexxFCL::root_4;
192 : using ObjexxFCL::rstrip;
193 : using ObjexxFCL::scan;
194 : using ObjexxFCL::sign;
195 : using ObjexxFCL::sized;
196 : using ObjexxFCL::square;
197 : using ObjexxFCL::strip;
198 : using ObjexxFCL::stripped;
199 : using ObjexxFCL::SYSTEM_CLOCK;
200 : using ObjexxFCL::TINY;
201 : using ObjexxFCL::trim;
202 : using ObjexxFCL::trimmed;
203 : using ObjexxFCL::uppercase;
204 : using ObjexxFCL::uppercased;
205 :
206 : #endif
|