FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
TrawlNetSpecReader.h
1#pragma once
2
3#include "CTrawlNetAssembler.h"
4
5#include <stdexcept>
6#include <string>
7
16namespace trawlwriter
17{
19class NetSpecError : public std::runtime_error
20{
21public:
22 using std::runtime_error::runtime_error;
23};
24
26struct Cut
27{
28 double N = 0;
29 double B = 0;
30 double T = 0;
31};
32
36Cut ParseCut(const std::string& notation);
37
49CTrawlNetAssembler ReadNetSpec(const std::string& path, const std::string& outDir, bool writeSideFiles = true);
50} // namespace trawlwriter
Class used to collect and contain the specification of a trawl net.
Definition CTrawlNetAssembler.h:29
A specification that cannot be read; the message names the file and line.
Definition TrawlNetSpecReader.h:20
Reads a trawl net from an XML net specification (doc/user/net-specification.md).
Definition TrawlNetSpecReader.h:17
CTrawlNetAssembler ReadNetSpec(const std::string &path, const std::string &outDir, bool writeSideFiles=true)
Cut ParseCut(const std::string &notation)
The cut of a wing section's edge: cut N-, B- and T-meshes per repeat.
Definition TrawlNetSpecReader.h:27