Antares Simulator
Power System Simulator
content.hxx
1 /*
2  * Copyright 2007-2025, RTE (https://www.rte-france.com)
3  * See AUTHORS.txt
4  * SPDX-License-Identifier: MPL-2.0
5  * This file is part of Antares-Simulator,
6  * Adequacy and Performance assessment for interconnected energy networks.
7  *
8  * Antares_Simulator is free software: you can redistribute it and/or modify
9  * it under the terms of the Mozilla Public Licence 2.0 as published by
10  * the Mozilla Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * Antares_Simulator is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * Mozilla Public Licence 2.0 for more details.
17  *
18  * You should have received a copy of the Mozilla Public Licence 2.0
19  * along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20  */
21 #ifndef __ANTARES_WINDOWS_OUTPUT_CONTENT_HXX__
22 #define __ANTARES_WINDOWS_OUTPUT_CONTENT_HXX__
23 
24 namespace Antares::Private::OutputViewerData
25 {
27  hasYearByYear(false),
28  hasConcatenedYbY(false)
29 {
30  ybyInterval[0] = (uint)-1;
31  ybyInterval[1] = 0;
32 }
33 
35 {
36 }
37 
38 inline bool Content::SimulationType::empty() const
39 {
40  return areas.empty() && links.empty();
41 }
42 
43 inline bool Content::empty() const
44 {
45  return economy.empty() && adequacy.empty();
46 }
47 
48 } // namespace Antares::Private::OutputViewerData
49 
50 #endif // __ANTARES_WINDOWS_OUTPUT_CONTENT_HXX__
LinkNameSet links
All links.
Definition: content.h:48
bool empty() const
Get if the result set is empty.
Definition: content.hxx:38
AreaNameSet areas
All areas.
Definition: content.h:46
~Content()
Destructor.
Definition: content.hxx:34
SimulationType economy
All areas/links found for economy.
Definition: content.h:65
Content()
Constructor & Destructor.
Definition: content.hxx:26
SimulationType adequacy
All areas/links found for adequacy.
Definition: content.h:67
uint ybyInterval[2]
Year interval for year-by-year data.
Definition: content.h:77