-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathoptions.cc
More file actions
29 lines (26 loc) · 794 Bytes
/
Copy pathoptions.cc
File metadata and controls
29 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "options.h"
bool Options::validate() const
{
// Check input file is valid
if (infile == "-") {
std::cerr << "ERROR: No input file or scene given" << std::endl;
return false;
}
return true;
}
std::ostream& operator<<(std::ostream& out, const Options& o)
{
if (!o.debug)
return out;
out << std::boolalpha;
out << std::endl;
out << "-- Options" << std::endl;
//out << "options.threads:\t" << o.threads << std::endl;
//out << "options.width:\t\t" << o.width << std::endl;
//out << "options.height:\t\t" << o.height << std::endl;
//out << "options.outfile:\t" << o.outfile << std::endl;
out << "options.infiles:\t\t" << o.infile << std::endl;
//out << "options.scene:\t\t" << o.scene << std::endl;
//out << "options.statistics:\t" << o.statistics;
return out;
}