31 SimParams::SimParams (
void):_command_line(
""),_howmany(0),tsam(0)
34 int SimParams::fromfile ( FILE * openfile )
36 _command_line.clear();
37 _command_line.reserve(100);
39 while( (ch=std::fgetc(openfile)) != EOF )
44 _command_line += char(ch);
48 while( (ch=std::fgetc(openfile)) != EOF )
50 if ((!isdigit(ch)&&!isspace(ch))|| ch==
'\n')
53 std::istringstream in(_command_line.c_str());
55 in >> ms >> tsam >> _howmany;
64 _command_line.clear();
85 if ((!isdigit(
int(ch))&&!isspace(
int(ch)))|| ch==
'\n')
93 std::istringstream in(_command_line.c_str());
95 in >> ms >> tsam >> _howmany;
106 stream <<
object._command_line;
Sequence::SimParams reads in the parameters of Dick Hudon's coalescent simulation program...
std::istream & read(std::istream &s)
Parameters for Hudson's simulation program.
The namespace in which this library resides.
std::ostream & operator<<(std::ostream &s, const AlignStream< T > &c)
std::istream & operator>>(std::istream &s, AlignStream< T > &c)