32 lines
447 B
C++
32 lines
447 B
C++
//
|
|
// Created by rhetenor on 13.09.18.
|
|
//
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
#include "DriverFactory.h"
|
|
#include "IInputDriver.h"
|
|
|
|
int main (int argc, char *argv[])
|
|
{
|
|
if(argc != 2)
|
|
{
|
|
std::cout << "Usage: " << argv[0] << " <config_file>";
|
|
}
|
|
std::string config_file = argv[1];
|
|
|
|
std::ifstream config;
|
|
try
|
|
{
|
|
config.open(config_file);
|
|
}
|
|
catch(const std::exception& e)
|
|
{
|
|
std::cout << e.what();
|
|
exit(1);
|
|
}
|
|
|
|
|
|
|
|
}
|