Commit 8d54b6b0 authored by Laurent Belcour's avatar Laurent Belcour

Small changes to make the brdf2data soft work with input files

parent 6416e545
......@@ -228,6 +228,7 @@ function* plugins_manager::get_function(const std::string& filename)
while(line != "#ALTA HEADER END")
{
std::getline(file, line) ;
std::cout << line << std::endl;
std::stringstream linestream(line) ;
linestream.ignore(1) ;
......@@ -240,7 +241,7 @@ function* plugins_manager::get_function(const std::string& filename)
linestream >> nX >> nY ;
}
else if(comment == std::string("CMD"))
{
{
args = arguments::create_arguments(line.substr(4, std::string::npos));
}
}
......
......@@ -46,7 +46,7 @@ int main(int argc, char** argv)
// Get the function file
function* f = NULL;
f = plugins_manager::get_function(args);
f = plugins_manager::get_function(args["input"]);
if(f == NULL)
{
return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment