From 69274195706914ff4b686e62f2b91979724551cc Mon Sep 17 00:00:00 2001 From: Clovis Durand Date: Mon, 2 Mar 2020 16:28:57 +0100 Subject: [PATCH] [#1] Started testing the EDS class in main.cpp Signed-off-by: Clovis Durand --- generator/src/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/generator/src/main.cpp b/generator/src/main.cpp index ee44f5a..04f5c54 100644 --- a/generator/src/main.cpp +++ b/generator/src/main.cpp @@ -5,6 +5,8 @@ */ /* Includes -------------------------------------------- */ +#include "EDS.hpp" + /* C++ system */ #include @@ -35,5 +37,16 @@ int main(const int argc, const char * const * const argv) { return EXIT_FAILURE; } + /* Create an EDS instance */ + EDS lEDS; + + std::cout << "[DEBUG] Opening EDS file " << argv[1] << std::endl; + if( 0 != lEDS.parseEDSFile(std::string(argv[1]))) { + std::cerr << "[ERROR] Failed to open EDS file " << argv[1] << " !" << std::endl; + return EXIT_FAILURE; + } else { + std::cerr << "[ERROR] Successfully opened EDS file " << argv[1] << " !" << std::endl; + } + return EXIT_SUCCESS; }