https://github.com/sueda/eol-cloth
Revision 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC, committed by GitHub on 11 September 2018, 15:17:28 UTC
1 parent 3c3ef84
Tip revision: 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC
Create LICENSE
Create LICENSE
Tip revision: 28fad2e
genSet.h
#pragma once
#ifndef __genSet__
#define __getSet__
#include <string>
#include <iostream>
class genSet
{
public:
genSet() : online(false),exportObjs(false), RESOURCE_DIR(""), OUTPUT_DIR("") {};
virtual ~genSet() {};
bool online;
bool exportObjs;
bool exportTimings;
std::string RESOURCE_DIR;
std::string OUTPUT_DIR;
void printGenSet() {
std::cout << "General settings" << std::endl;
std::cout << " online: " << printGenBool(online) << std::endl;
std::cout << " exportObjs: " << printGenBool(exportObjs) << std::endl;
std::cout << " exportTimings: " << printGenBool(exportTimings) << std::endl;
std::cout << " RESOURCE_DIR: " << RESOURCE_DIR << std::endl;
std::cout << " OUTPUT_DIR: " << OUTPUT_DIR << std::endl;
}
private:
std::string printGenBool(bool b) {
if (b) return "True";
return "False";
}
};
#endif
Computing file changes ...