ReadFramework
TestUtils.h
Go to the documentation of this file.
1 /*******************************************************************************************************
2  ReadFramework is the basis for modules developed at CVL/TU Wien for the EU project READ.
3 
4  Copyright (C) 2016 Markus Diem <diem@caa.tuwien.ac.at>
5  Copyright (C) 2016 Stefan Fiel <fiel@caa.tuwien.ac.at>
6  Copyright (C) 2016 Florian Kleber <kleber@caa.tuwien.ac.at>
7 
8  This file is part of ReadFramework.
9 
10  ReadFramework is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  ReadFramework is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 
23  The READ project has received funding from the European Union’s Horizon 2020
24  research and innovation programme under grant agreement No 674943
25 
26  related links:
27  [1] http://www.caa.tuwien.ac.at/cvl/
28  [2] https://transkribus.eu/Transkribus/
29  [3] https://github.com/TUWien/
30  [4] http://nomacs.org
31  *******************************************************************************************************/
32 
33 #pragma once
34 
35 #pragma warning(push, 0) // no warnings from includes
36 #include <QString>
37 #pragma warning(pop)
38 
39 // TODO: add DllExport magic
40 
41 // Qt defines
42 
43 namespace rdf {
44 
45 // read defines
46 class TestConfig{
47 
48 public:
49  TestConfig();
50 
51  void setImagePath(const QString& path);
52  QString imagePath() const;
53 
54  void setXmlPath(const QString& path);
55  QString xmlPath() const;
56 
57  void setTemplateXmlPath(const QString& path);
58  QString templateXmlPath() const;
59 
60  void setClassifierPath(const QString& path);
61  QString classifierPath() const;
62 
63  void setLabelConfigPath(const QString& path);
64  QString labelConfigPath() const;
65 
66  void setFeatureCachePath(const QString& path);
67  QString featureCachePath() const;
68 
69 protected:
70  QString mImagePath = "ftp://scruffy.caa.tuwien.ac.at/staff/read/test-resources/00000001-6.jpg";
71  QString mXMLPath = "ftp://scruffy.caa.tuwien.ac.at/staff/read/test-resources/page/00000001-6.xml";
72  QString mTemplateXMLPath = "ftp://scruffy.caa.tuwien.ac.at/staff/read/test-resources/page/M_Aigen_am_Inn-template2.xml";
73  QString mClassifierPath = "";
74  QString mFeatureCachePath = "";
75  QString mLabelConfigPath = "ftp://scruffy.caa.tuwien.ac.at/staff/read/test-resources/configs/config-baseline.json";
76 
77 };
78 
79 }
QString mXMLPath
Definition: TestUtils.h:71
QString labelConfigPath() const
Definition: TestUtils.cpp:94
QString mLabelConfigPath
Definition: TestUtils.h:75
void setXmlPath(const QString &path)
Definition: TestUtils.cpp:62
QString classifierPath() const
Definition: TestUtils.cpp:82
Definition: TestUtils.h:46
void setClassifierPath(const QString &path)
Definition: TestUtils.cpp:78
void setImagePath(const QString &path)
Definition: TestUtils.cpp:54
void setTemplateXmlPath(const QString &path)
Definition: TestUtils.cpp:70
QString mFeatureCachePath
Definition: TestUtils.h:74
void setLabelConfigPath(const QString &path)
Definition: TestUtils.cpp:90
QString mClassifierPath
Definition: TestUtils.h:73
QString templateXmlPath() const
Definition: TestUtils.cpp:74
QString featureCachePath() const
Definition: TestUtils.cpp:102
QString mImagePath
Definition: TestUtils.h:70
Definition: Algorithms.cpp:45
QString mTemplateXMLPath
Definition: TestUtils.h:72
TestConfig()
Definition: TestUtils.cpp:48
void setFeatureCachePath(const QString &path)
Definition: TestUtils.cpp:98
QString imagePath() const
Definition: TestUtils.cpp:58
QString xmlPath() const
Definition: TestUtils.cpp:66