Candidate_v1.6.1
ChemicalSpaceEvaluator
TremoloParser_IncreasedPrecision
Last change
on this file since fba720 was 765f16, checked in by Frederik Heber <heber@…>, 13 years ago |
Huge Refactoring of FormatParserStorage and all FormatParser's.
FormatParser:
FormatParserStorage:
- We construct all lookup tables and alikes via boost preprocessor magic from
a list of all available parser (enums).
- we use the templated getParser() and addParser() functions to serve parsers
to the outside. Instances are as usual created only once.
Tests:
- tests only had to be changed because of the "renaming" of the Parsers.
|
-
Property mode
set to
100644
|
File size:
633 bytes
|
Rev | Line | |
---|
[9e4fd1] | 1 | /*
|
---|
| 2 | * ParserPcpUnitTest.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Mar 3, 2010
|
---|
| 5 | * Author: metzler
|
---|
| 6 | */
|
---|
| 7 | #ifndef PARSERPCPUNITTEST_HPP_
|
---|
| 8 | #define PARSERPCPUNITTEST_HPP_
|
---|
| 9 |
|
---|
| 10 | // include config.h
|
---|
| 11 | #ifdef HAVE_CONFIG_H
|
---|
| 12 | #include <config.h>
|
---|
| 13 | #endif
|
---|
| 14 |
|
---|
[765f16] | 15 | #include "Parser/PcpParser.hpp"
|
---|
[9e4fd1] | 16 |
|
---|
| 17 | #include <cppunit/extensions/HelperMacros.h>
|
---|
| 18 | #include <string>
|
---|
| 19 |
|
---|
| 20 | class ParserPcpUnitTest : public CppUnit::TestFixture
|
---|
| 21 | {
|
---|
| 22 | CPPUNIT_TEST_SUITE( ParserPcpUnitTest ) ;
|
---|
| 23 | CPPUNIT_TEST ( readwritePcpTest );
|
---|
| 24 | CPPUNIT_TEST_SUITE_END();
|
---|
| 25 |
|
---|
| 26 | public:
|
---|
| 27 | void setUp();
|
---|
| 28 | void tearDown();
|
---|
| 29 |
|
---|
| 30 | void readwritePcpTest();
|
---|
[765f16] | 31 |
|
---|
| 32 | private:
|
---|
| 33 | FormatParser<pcp> *parser;
|
---|
[9e4fd1] | 34 | };
|
---|
| 35 |
|
---|
| 36 | #endif /* PARSERPCPUNITTEST_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.