Combined header files to a single header file

This commit is contained in:
Jens Gåsemyr Magnus
2017-09-07 14:38:31 +02:00
parent e1d860506a
commit 0ab722902d
27 changed files with 234 additions and 563 deletions

View File

@@ -2,13 +2,10 @@
#include <opm/parser/eclipse/Parser/Parser.hpp>
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include "parser.hpp"
namespace py = boost::python;
using namespace Opm;
#include "sunbeam.hpp"
namespace parser {
namespace {
Deck parseDeck( const std::string& deckStr,
const boost::python::list& keywords,
@@ -29,23 +26,22 @@ namespace parser {
void (ParseContext::*ctx_update)(const std::string&, InputError::Action) = &ParseContext::update;
}
void export_Parser() {
void sunbeam::export_Parser() {
py::def( "parse", parse );
py::def( "parse_data", parseData );
py::def( "parse_deck", &parseDeck );
py::def( "parse", parse );
py::def( "parse_data", parseData );
py::def( "parse_deck", &parseDeck );
py::class_< ParseContext >( "ParseContext" )
.def( "update", ctx_update )
;
py::class_< ParseContext >( "ParseContext" )
.def( "update", ctx_update )
;
py::enum_< InputError::Action >( "action" )
.value( "throw", InputError::Action::THROW_EXCEPTION )
.value( "warn", InputError::Action::WARN )
.value( "ignore", InputError::Action::IGNORE )
;
}
py::enum_< InputError::Action >( "action" )
.value( "throw", InputError::Action::THROW_EXCEPTION )
.value( "warn", InputError::Action::WARN )
.value( "ignore", InputError::Action::IGNORE )
;
}