libsequence  1.9.5
SimParams.hpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu
4 
5 Remove the brackets to email me.
6 
7 This file is part of libsequence.
8 
9 libsequence is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 libsequence is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 long with libsequence. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifndef SIMPARAMS_H
25 #define SIMPARAMS_H
26 
41 #include <iosfwd>
42 #include <string>
43 #include <vector>
44 #include <cstdio>
45 
46 namespace Sequence
47 {
48  class SimParams
49  {
50  friend std::ostream& operator<<(std::ostream&,class SimParams &object);
51  private:
52  std::string _command_line;
53  unsigned _howmany, tsam;
54  public:
55  SimParams(void);
56  std::istream& read(std::istream& s);
57  int fromfile ( FILE * openfile );
58  std::string params (void) const
64  {
65  return _command_line;
66  }
67  unsigned totsam (void) const
71  {
72  return (tsam);
73  }
74  unsigned runs (void) const
78  {
79  return (_howmany);
80  }
81  };
82 
83  std::istream& operator>>(std::istream& s, SimParams& c);
84 }
85 #endif
std::istream & read(std::istream &s)
Definition: SimParams.cc:59
Parameters for Hudson&#39;s simulation program.
Definition: SimParams.hpp:48
unsigned runs(void) const
Definition: SimParams.hpp:74
std::string params(void) const
Definition: SimParams.hpp:58
The namespace in which this library resides.
std::istream & operator>>(std::istream &s, AlignStream< T > &c)
unsigned totsam(void) const
Definition: SimParams.hpp:67
friend std::ostream & operator<<(std::ostream &, class SimParams &object)
Definition: SimParams.cc:99