CombiningParticlePotentialParsing
Last change
on this file since ff4fff9 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
|
Line | |
---|
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 |
|
---|
15 | #include "Parser/PcpParser.hpp"
|
---|
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();
|
---|
31 |
|
---|
32 | private:
|
---|
33 | FormatParser<pcp> *parser;
|
---|
34 | };
|
---|
35 |
|
---|
36 | #endif /* PARSERPCPUNITTEST_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.