vdj_pipe
pipeline for processing DNA sequence data
sequence_file.hpp
Go to the documentation of this file.
1 
7 #ifndef SEQUENCE_FILE_HPP_
8 #define SEQUENCE_FILE_HPP_
9 #include <string>
10 #include "vdj_pipe/exception.hpp"
11 #include "vdj_pipe/object_ids.hpp"
12 #include "vdj_pipe/file.hpp"
13 
14 namespace vdj_pipe{
15 class Seq_file_map;
16 
19 class Seq_file : public File_input {
20  friend class Seq_file_map;
21 
22 public:
23  explicit Seq_file(
24  std::string const& path,
25  const bool reverse = false
26  )
27  : File_input(path),
28  pid_(),
30  {}
31 
32  Path_id id() const {return pid_;}
33  bool is_reverse() const {return is_reverse_;}
34 
35  Seq_file& reverse(const bool rev) {
36  is_reverse_ = rev;
37  return *this;
38  }
39 
40 private:
41  Path_id pid_;
43 };
44 
45 }//namespace vdj_pipe
46 #endif /* SEQUENCE_FILE_HPP_ */
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
File target is supposed to exist at construction time.
Definition: file.hpp:93
std::string const & path() const
Definition: file.hpp:74
bool is_reverse() const
Definition: sequence_file.hpp:33
Definition: sequence_file_map.hpp:24
Path_id pid_
Definition: sequence_file.hpp:41
Seq_file(std::string const &path, const bool reverse=false)
Definition: sequence_file.hpp:23
Definition: sequence_file.hpp:19
Path_id id() const
Definition: sequence_file.hpp:32
bool is_reverse_
Definition: sequence_file.hpp:42
Seq_file & reverse(const bool rev)
Definition: sequence_file.hpp:35