38 lines
775 B
C++
38 lines
775 B
C++
//
|
|
// Created by rhetenor on 13.09.18.
|
|
//
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <memory>
|
|
|
|
#include "DriverFactory.h"
|
|
#include "IInputDriver.h"
|
|
|
|
using namespace FlippR_Driver;
|
|
|
|
int main (int argc, char *argv[])
|
|
{
|
|
if(argc != 3)
|
|
{
|
|
std::cout << "Usage: " << argv[0] << " <input_config_file> <matrix_config_file>";
|
|
}
|
|
std::string input_config_file = argv[1];
|
|
std::string matrix_config_file = argv[2];
|
|
|
|
std::ifstream input_config;
|
|
std::ifstream matrix_config;
|
|
try
|
|
{
|
|
input_config.open(input_config_file);
|
|
matrix_config.open(matrix_config_file);
|
|
}
|
|
catch(const std::exception& e)
|
|
{
|
|
std::cout << e.what();
|
|
exit(1);
|
|
}
|
|
|
|
std::shared_ptr<Input::IInputDriver> driver = FlippR_Driver::get_InputDriver(input_config, matrix_config);
|
|
|
|
}
|