Skip to content
Snippets Groups Projects
Commit bc85b911 authored by David Flitney's avatar David Flitney
Browse files

Initial revision

parent 66bdbf1c
No related branches found
No related tags found
No related merge requests found
#include "options.h"
namespace Utilities {
void string_to_T(bool &b, const string& s) {
if(s == "NO ARG")
b = !b;
else
b = (s == "true");
}
void string_to_T(string& d, const string& s) {
d = s;
}
void string_to_T(int& i, const string& s) {
i = atoi(s.c_str());
}
void string_to_T(float& v, const string& s) {
v = atof(s.c_str());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment