1
/**********************************************************************
2
* $Id: XMLTester.h,v 1.1.2.1.2.2 2006/03/06 14:54:19 strk Exp $
4
* GEOS - Geometry Engine Open Source
5
* http://geos.refractions.net
7
* Copyright (C) 2005 Refractions Research Inc.
9
* This is free software; you can redistribute and/or modify it under
10
* the terms of the GNU Lesser General Public Licence as published
11
* by the Free Software Foundation.
12
* See the COPYING file for more information.
14
**********************************************************************/
16
#ifndef __XMLTESTER_H__
17
#define __XMLTESTER_H__
34
void parsePrecisionModel();
37
void runPredicates(const Geometry *a, const Geometry *b);
38
Geometry *parseGeometry(const std::string &in);
39
static std::string trimBlanks(const std::string &in);
46
GeometryFactory *factory;
59
std::string opSignature;
64
const std::string *curr_file;
65
std::string curr_case_desc;
70
void testValid(const Geometry* g, const std::string& label);
75
void run(const std::string &testFile);
76
void resultSummary(std::ostream &os) const;
81
* 0: Show case description, run tests, show result
82
* 1: Show parsed geometry values
85
* Return previously set verbosity level
87
int setVerbosityLevel(int val);
89
int getFailuresCount() { return failed; }
91
void testOutputValidity(bool val) { testValidOutput=val; }
92
void testInputValidity(bool val) { testValidInput=val; }