Skip to content

Commit

Permalink
[#1] Started testing the EDS class in main.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <cd.clovel19@gmail.com>
  • Loading branch information
Clovel committed Mar 2, 2020
1 parent 20546cf commit 6927419
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions generator/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/

/* Includes -------------------------------------------- */
#include "EDS.hpp"

/* C++ system */
#include <iostream>

Expand Down Expand Up @@ -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;
}

0 comments on commit 6927419

Please sign in to comment.