GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
py_io.cpp
Go to the documentation of this file.
1#include "gridfire/io/io.h"
2#include "py_io.h"
3
4#include <pybind11/pybind11.h>
5
6 namespace py = pybind11;
7
8 gridfire::io::ParsedNetworkData PyNetworkFileParser::parse(const std::string &filename) const {
9 PYBIND11_OVERLOAD_PURE(
10 gridfire::io::ParsedNetworkData,
11 gridfire::io::NetworkFileParser,
12 parse // Method name
13 );
14}
PyNetworkFileParser::parse
gridfire::io::ParsedNetworkData parse(const std::string &filename) const override
Parses a network file and returns the parsed data.
Definition py_io.cpp:8
gridfire::io::NetworkFileParser
An abstract base class for network file parsers.
Definition network_file.h:22
io.h
gridfire::io::ParsedNetworkData
std::vector< std::string > ParsedNetworkData
Definition network_file.h:12
py_io.h