refactored soo much for el
This commit is contained in:
@@ -3,22 +3,28 @@
|
||||
//
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
|
||||
#include "DriverFactory.h"
|
||||
#include "IInputDriver.h"
|
||||
|
||||
using namespace FlippR_Driver;
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
if(argc != 2)
|
||||
if(argc != 3)
|
||||
{
|
||||
std::cout << "Usage: " << argv[0] << " <config_file>";
|
||||
std::cout << "Usage: " << argv[0] << " <input_config_file> <matrix_config_file>";
|
||||
}
|
||||
std::string config_file = argv[1];
|
||||
std::string input_config_file = argv[1];
|
||||
std::string matrix_config_file = argv[2];
|
||||
|
||||
std::ifstream config;
|
||||
std::ifstream input_config;
|
||||
std::ifstream matrix_config;
|
||||
try
|
||||
{
|
||||
config.open(config_file);
|
||||
input_config.open(input_config_file);
|
||||
matrix_config.open(matrix_config_file);
|
||||
}
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
@@ -26,6 +32,6 @@ int main (int argc, char *argv[])
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
std::shared_ptr<Input::IInputDriver> driver = FlippR_Driver::get_InputDriver(input_config, matrix_config);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user