26 #ifndef SHORE_IO_SEGMENT_HPP__
27 #define SHORE_IO_SEGMENT_HPP__
47 shore::segment m_current;
53 typedef shore::segment current_type;
58 const std::string &
id,
const std::string &chr,
59 const std::string &pos,
60 const std::string &strand,
const std::string &
size,
61 const std::string &
end=std::string());
66 const std::string &
id,
const std::string &chr,
67 const std::string &pos,
68 const std::string &strand,
const std::string &size,
69 const std::string &
end=std::string());
71 const shore::segment ¤t()
const;
75 const std::string ¤t_line()
const;
76 const std::string& get_header()
const;
94 std::ostream *streamptr;
100 config(
const std::string &fn=std::string(),
101 std::ostream *ostr=0,
102 bool strand=
true,
bool size=
true,
103 bool covminmax=
false,
bool p=
false)
104 :filename(fn),streamptr(ostr),
105 wstrand(strand),wsize(
size),wcovminmax(covminmax),wp(p)
120 typedef shore::segment append_type;
127 void init(
const bool covminmax,
const bool p);
129 void append(
const shore::segment &seg);
138 #endif // SHORE_IO_SEGMENT_HPP__