Skip to content

Commit

Permalink
Moved domain conversion classes to europa core
Browse files Browse the repository at this point in the history
Moved the utilities allowing conversion from/to TREX domains to/from
their europa counterpart to europa_core instead of the plugin so they
can be used externally
  • Loading branch information
fredpy committed Jun 16, 2015
1 parent d271c61 commit ae2294a
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 138 deletions.
4 changes: 0 additions & 4 deletions extra/europa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ if(WITH_EUROPA)

trex_plugin(europa europa_plugin.cc
EuropaReactor.cc
europa_convert.cc
EuropaDomain.cc
extensions/Bind.cc
extensions/DoNotMatchFilter.cc
extensions/extensions.cc
Expand All @@ -99,8 +97,6 @@ if(WITH_EUROPA)
extensions/Trigonometry.cc
# headers
EuropaReactor.hh
bits/europa_convert.hh
EuropaEntity.hh
extensions/Bind.hh
extensions/DoNotMatchFilter.hh
extensions/EarliestFirstFlawManager.hh
Expand Down
2 changes: 1 addition & 1 deletion extra/europa/EuropaReactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
#include "EuropaReactor.hh"

#include "bits/europa_convert.hh"
#include <trex/europa/bits/europa_convert.hh>
#include "core/private/CurrentState.hh"

#include <trex/utils/chrono_helper.hh>
Expand Down
9 changes: 7 additions & 2 deletions extra/europa/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,21 @@ add_library(TREXeuropa_core SHARED
Assembly.cc
core.cc
CurrentState.cc
EuropaDomain.cc
TrexThreatDecisionPoint.cc
DeliberationFilter.cc
europa_convert.cc
europa_helpers.cc
ModeConstraints.cc
ReactorConstraints.cc
Schema.cc
SynchronizationManager.cc
TimeConstraints.cc
# headers
# headers
private/EuropaDomain.hh
../trex/europa/Assembly.hh
../trex/europa/DeliberationFilter.hh
../trex/europa/EuropaEntity.hh
../trex/europa/EuropaException.hh
../trex/europa/EuropaPlugin.hh
../trex/europa/ModeConstraints.hh
Expand All @@ -64,6 +68,7 @@ add_library(TREXeuropa_core SHARED
../trex/europa/SynchronizationManager.hh
../trex/europa/TimeConstraints.hh
../trex/europa/TrexThreatDecisionPoint.hh
../trex/europa/bits/europa_convert.hh
../trex/europa/bits/europa_helpers.hh
../trex/europa/config.hh
)
Expand All @@ -72,7 +77,7 @@ source_group("Header\ Files\\bits" FILES
../trex/europa/bits/europa_helpers.hh
)

target_link_libraries(TREXeuropa_core ${EUROPA_LIBRARIES} TREXutils
target_link_libraries(TREXeuropa_core ${EUROPA_LIBRARIES} TREXdomain
${Boost_REGEX_LIBRARY})

trex_lib(TREXeuropa_core extra)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "EuropaEntity.hh"
#include <trex/europa/EuropaEntity.hh>
#include "private/EuropaDomain.hh"
#include "bits/europa_convert.hh"
#include <trex/europa/bits/europa_convert.hh>

using namespace TREX::europa;
using namespace TREX;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "bits/europa_convert.hh"
#include <trex/europa/bits/europa_convert.hh>


#include <trex/europa/EuropaException.hh>
#include "EuropaEntity.hh"
#include <trex/europa/EuropaEntity.hh>
#include "private/EuropaDomain.hh"

#include <trex/domain/BooleanDomain.hh>
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ae2294a

Please sign in to comment.