DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
InputFileParser Class Reference

#include <inputfileparser.h>

Public Member Functions

 InputFileParser ()
 
bool parseHarbourFile (const QString &path, QList< std::shared_ptr< HarbourData > > &list, QString *error)
 
bool parseShortestPath (const QString &path, int nodeid, QList< QPair< int, int > > &graph)
 
bool isShortestPathPresent (const QString &path, types::NodeId nodeid)
 
bool parseGraph (const QString &graphpath, const QString &coordsPath, QList< GraphBuilder::Node > &nodes, QString *error)
 
bool pathParseRelevantNodes (const QString &refpath, QString &fnodePath, QString &harbPath)
 
bool pathParseRelevantInterNodes (const QString &refpath, QString &fnodePath, QString &harbPath)
 
bool parseRelevantNodes (const QString &file, QSet< int > &nodes)
 
bool parseRelevantInterNodes (const QString &file, QVector< int > &nodeids)
 
bool parseStockNamesFile (const QString &path, QMap< QString, int > &names)
 

Constructor & Destructor Documentation

◆ InputFileParser()

InputFileParser::InputFileParser ( )

Member Function Documentation

◆ isShortestPathPresent()

bool InputFileParser::isShortestPathPresent ( const QString &  path,
types::NodeId  nodeid 
)

◆ parseGraph()

bool InputFileParser::parseGraph ( const QString &  graphpath,
const QString &  coordsPath,
QList< GraphBuilder::Node > &  nodes,
QString *  error 
)

◆ parseHarbourFile()

bool InputFileParser::parseHarbourFile ( const QString &  path,
QList< std::shared_ptr< HarbourData > > &  list,
QString *  error 
)

◆ parseRelevantInterNodes()

bool InputFileParser::parseRelevantInterNodes ( const QString &  file,
QVector< int > &  nodeids 
)

◆ parseRelevantNodes()

bool InputFileParser::parseRelevantNodes ( const QString &  file,
QSet< int > &  nodes 
)

◆ parseShortestPath()

bool InputFileParser::parseShortestPath ( const QString &  path,
int  nodeid,
QList< QPair< int, int > > &  graph 
)

◆ parseStockNamesFile()

bool InputFileParser::parseStockNamesFile ( const QString &  path,
QMap< QString, int > &  names 
)

◆ pathParseRelevantInterNodes()

bool InputFileParser::pathParseRelevantInterNodes ( const QString &  refpath,
QString &  fnodePath,
QString &  harbPath 
)

◆ pathParseRelevantNodes()

bool InputFileParser::pathParseRelevantNodes ( const QString &  refpath,
QString &  fnodePath,
QString &  harbPath 
)

The documentation for this class was generated from the following files: