Commit Graph

1280 Commits

Author SHA1 Message Date
Joakim Hove
5dc350c735 Changed single -> SINGLE 2013-08-06 16:25:56 +02:00
Joakim Hove
a214098db3 Added EQUIL and EQUILDIMS to parser config 2013-08-06 14:40:43 +02:00
Joakim Hove
475b607faf Can now parse file with several WCONHIST keywords 2013-08-01 12:50:42 +02:00
Joakim Hove
75954575d5 Changed Deck::getKeyword() to take an additional inde argument 2013-08-01 10:57:25 +02:00
Joakim Hove
3bd3c7a306 Can parse one isolated WCONHIST keyword 2013-08-01 10:05:13 +02:00
Joakim Hove
a8d4a22894 Renamed DeckRecord::get() -> DeckRecord::getItem() 2013-08-01 09:52:49 +02:00
Joakim Hove
15c4874ee0 Added parsing support for float (i.e. double) items 2013-08-01 09:31:27 +02:00
Joakim Hove
797125463c Added class wide default double value 2013-08-01 09:31:06 +02:00
Joakim Hove
ab3fb002d6 Added WCONHIST config to parser json config object 2013-08-01 09:30:11 +02:00
Joakim Hove
6d407ba73d Added as_double() acces to JsonObject 2013-08-01 09:26:21 +02:00
Joakim Hove
8bc176d63e Added full(?) Parser configuration from json 2013-07-31 17:58:05 +02:00
Joakim Hove
8dc8781c12 Added ValueType enum 2013-07-31 16:52:24 +02:00
Joakim Hove
7b9206f675 Added Json config to ParserStringItem 2013-07-31 16:24:26 +02:00
Joakim Hove
6c582a4b82 Added JsonConfig constructor to ParserIntItem 2013-07-31 16:15:22 +02:00
Joakim Hove
20a283e5d0 Added 2String and FromString methods to the Enums 2013-07-31 15:48:15 +02:00
Joakim Hove
db60ee2b56 Removed setRecord() method ParserKeyword. Instead ParserRecord is created during ParserKeyword construction 2013-07-31 15:02:00 +02:00
Joakim Hove
b7397ca502 Parser instantiated with json config file 2013-07-31 11:30:52 +02:00
Joakim Hove
b3d9fb51a0 Parser object can be constructed with config file as input argument 2013-07-31 11:30:21 +02:00
Joakim Hove
dd5e0b7b9c Added throw() if JsonObject does not have name: 2013-07-31 11:29:16 +02:00
Joakim Hove
6ecad6b4e8 Improvements to JsonObject 2013-07-31 11:28:07 +02:00
Joakim Hove
17f440d6eb Added more json config files 2013-07-31 11:27:01 +02:00
Joakim Hove
d8a74a1d3d Typo in working directory of tests 2013-07-31 08:30:03 +02:00
Joakim Hove
e0995814f6 More JSON integration in Parser and ParserKeyword 2013-07-30 14:10:07 +02:00
Joakim Hove
269686a2f5 Extended the JsonObject() class 2013-07-30 14:08:42 +02:00
Joakim Hove
66cbb1a5cb Added Boost_LIBARIES to opm-json link target 2013-07-30 14:07:57 +02:00
Joakim Hove
c829bf0b66 Added (const char * inline_json) constructor 2013-07-30 09:21:54 +02:00
Joakim Hove
42e7333392 Added JsonObject as thin wrapper around the cJSON source 2013-07-29 21:55:57 +02:00
Joakim Hove
bf73449736 Added external files for cjson 2013-07-29 21:50:29 +02:00
Joakim Hove
8d6d9fd0a4 Merge pull request #4 from flikka/replace-RawParserKeywords
Replacing the RawParserKeywords with ParserKeyword with size
2013-06-24 06:13:15 -07:00
Kristian Flikka
31b3031c1a Removed class ParserKeywordSize, and accompanying tests. Put info into ParserKeyword. Changed tests to expose same constraints. 2013-06-24 14:08:53 +02:00
Kristian Flikka
881adc2d40 Renamed template variable from intValue to value 2013-06-24 11:15:34 +02:00
Kristian Flikka
573b39b9ba Renamed fixedSize to getFixedSize for consistency 2013-06-24 10:05:51 +02:00
Kristian Flikka
c905a8e65a Merged cmake, was the same.. 2013-06-21 15:37:56 +02:00
Kristian Flikka
951ce6ac4d Changed from using RawParserKeywords to equivalent functionality now in Parser and ParserKeywordSize 2013-06-21 15:34:45 +02:00
Kristian Flikka
50ec3e0244 Changed from using RawParserKeywords to equivalent functionality now in Parser and ParserKeywordSize 2013-06-21 15:34:06 +02:00
Kristian Flikka
01abb91959 Renamed ParserRecordSize to ParserKeywordSize, because it is more consistent with ParserItemSize 2013-06-21 10:23:24 +02:00
Kristian Flikka
be06dee465 Fixed error in CMakeLists, renaming not completed... 2013-06-21 09:51:18 +02:00
Kristian Flikka
d79745ce4f Changed some KEYWORD->Keyword instances, search and replace hickup 2013-06-20 15:40:45 +02:00
Kristian Flikka
f1660460dc Replaced all instances of KW with Keyword. We can afford it. 2013-06-20 15:30:37 +02:00
Kristian Flikka
abcde19716 Removed unused import 2013-06-20 14:40:12 +02:00
Kristian Flikka
5fa04e5377 Added/implemented XStringItem for Parser and Deck, with tests. Added integration test for WWCT keyword. Moved DeckItem tests into type-specific files. Removed unused file. 2013-06-20 13:56:11 +02:00
Kristian Flikka
17dde28c49 Expanded ParserTest to test int based record with 1 to many records and items 2013-06-18 14:12:00 +02:00
Kristian Flikka
de1983807d Added single parser test to test raw to deck parsing of int 2013-06-18 13:47:07 +02:00
Kristian Flikka
2cce97f115 Split parser function, to make more modular and testable. Moved integrationtests from ParserTests into Integration tests. 2013-06-18 10:28:30 +02:00
Kristian Flikka
a312360c8e Corrected the label-setting 2013-06-06 14:06:20 +02:00
Kristian Flikka
fbb468342d Finished up the last pieces for a simple BPR keyword vertical. 2013-06-04 14:32:30 +02:00
Kristian Flikka
18db675f71 Added some temporary code to make it build. WIP 2013-06-03 15:58:47 +02:00
Kristian Flikka
b43d95c5a2 Starting to wrap up from the top, added the missing DeckKW, and refactored a bit in some of the Raw classes that returned the internal structure 2013-06-03 15:54:16 +02:00
Joakim Hove
f9ae0680eb Added DeckTests.cpp 2013-06-03 10:25:26 +02:00
Joakim Hove
c596b086c8 Started integration testing 2013-05-30 10:11:12 +02:00