Force Directed Edge Bundling
 All Classes Functions Pages
fileparser.h
1 #pragma once
2 #include "datatypes.h"
3 #include <QMap>
4 #include <QString>
5 #include <QList>
6 
10 class FileParser {
11 public:
12  void setPattern(QList<QString>);
13 
14  template<typename TYPE>
15  bool read(QString filename, TYPE &list);
16 
17 protected:
18  bool parseFromString(QList<Airport*>&, QString);
19  bool parseFromString(QList<Route*>&, QString);
20  bool parseFromString(QMap<QString, int>&, QString);
21  bool parseFromString(QMap<int, int>&, QString);
22 };
23 
bool read(QString filename, TYPE &list)
Definition: fileparser.cpp:16
Definition: fileparser.h:10
bool parseFromString(QList< Airport * > &, QString)
Definition: fileparser.cpp:50