// STL
#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
// DSIM
#include <dsim/DSIM_Service.hpp>
#include <dsim/config/dsim-paths.hpp>

// ///////// M A I N ////////////
int main (int argc, char* argv[]) {

  try {
    
    // Schedule input file name
    std::string lScheduleInputFilename ("../samples/schedule01.csv");

    // Output log File
    std::string lLogFilename ("simulate.log");

    // Set the log parameters
    std::ofstream logOutputFile;
    // Open and clean the log outputfile
    logOutputFile.open (lLogFilename.c_str());
    logOutputFile.clear();
    
    // Initialise the list of classes/buckets
    DSIM::DSIM_Service dsimService (lScheduleInputFilename, logOutputFile);

    // Perform a simulation
    dsimService.simulate();
    
  } catch (const std::exception& stde) {
    std::cerr << "Standard exception: " << stde.what() << std::endl;
    return -1;
    
  } catch (...) {
    return -1;
  }
  
  return 0;	
}

// STL
#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
// DSIM
#include <dsim/DSIM_Service.hpp>
#include <dsim/config/dsim-paths.hpp>

// ///////// M A I N ////////////
int main (int argc, char* argv[]) {

  try {
    
    // Output log File
    std::string lLogFilename ("simulate.log");

    // Set the log parameters
    std::ofstream logOutputFile;
    // Open and clean the log outputfile
    logOutputFile.open (lLogFilename.c_str());
    logOutputFile.clear();
    
    // Initialise the list of classes/buckets
    DSIM::DSIM_Service dsimService (logOutputFile);

    // Perform a simulation
    dsimService.simulate();
    
  } catch (const std::exception& stde) {
    std::cerr << "Standard exception: " << stde.what() << std::endl;
    return -1;
    
  } catch (...) {
    return -1;
  }
  
  return 0;	
}

--- 
+++ 
@@ -13,6 +13,9 @@
 
   try {
     
+    // Schedule input file name
+    std::string lScheduleInputFilename ("../samples/schedule01.csv");
+
     // Output log File
     std::string lLogFilename ("simulate.log");
 
@@ -23,7 +26,7 @@
     logOutputFile.clear();
     
     // Initialise the list of classes/buckets
-    DSIM::DSIM_Service dsimService (logOutputFile);
+    DSIM::DSIM_Service dsimService (lScheduleInputFilename, logOutputFile);
 
     // Perform a simulation
     dsimService.simulate();
[Test] Update the test with the schedule input filename.

git-svn-id: 543967457c07248534c6537446d108cd8c20cdb5@33 e67a024f-d144-4c12-b96e-b057add9d369
