deltaFlow
Reader.H
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Saud Zahir
3 *
4 * This file is part of deltaFlow.
5 *
6 * deltaFlow is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * deltaFlow is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public
17 * License along with deltaFlow. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
26#ifndef READER_H
27#define READER_H
28
29#include <string>
30
31#include "Data.H"
32
40class Reader {
41 public:
43 virtual ~Reader() = default;
44
49 virtual void read(const std::string& filename) = 0;
50
55 const BusData& getBusData() const noexcept;
56
61 const BranchData& getBranchData() const noexcept;
62
63 protected:
66};
67
68#endif
Data structures and utility functions for reading and displaying bus and branch data in power system ...
Abstract reader interface for power system input formats.
Definition Reader.H:40
BranchData branchData
Parsed branch data.
Definition Reader.H:65
virtual void read(const std::string &filename)=0
Read and parse the input file.
virtual ~Reader()=default
Virtual destructor.
const BusData & getBusData() const noexcept
Get the parsed bus data.
Definition Reader.C:28
BusData busData
Parsed bus data.
Definition Reader.H:64
const BranchData & getBranchData() const noexcept
Get the parsed branch data.
Definition Reader.C:32
Contains all relevant data for each transmission line or transformer branch.
Definition Data.H:83
Contains all relevant data for each bus in the power system.
Definition Data.H:55