File: SMRTTitle.hpp

package info (click to toggle)
pbseqlib 5.3.5%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,020 kB
  • sloc: cpp: 77,250; python: 331; sh: 103; makefile: 41
file content (41 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _BLASR_SMRT_TITLE_HPP_
#define _BLASR_SMRT_TITLE_HPP_

#include <sstream>
#include <string>
#include <vector>

#include <pbdata/Types.h>
#include <pbdata/StringUtils.hpp>

class SMRTTitle
{
public:
    std::string movieName;
    UInt holeNumber;
    DNALength start;
    DNALength end;
    // if input name is a smrt title.
    bool isSMRTTitle;

    SMRTTitle(const std::string& name);

    /// \returns smrt title movie/zmw/s_e, if input read is a smrt title;
    /// otherwise, return an empty string.
    std::string ToString();

public:
    inline std::string MovieName(void) const;
    inline UInt HoleNumber(void) const;
    inline DNALength Start(void) const;
    inline DNALength End(void) const;
    inline operator bool(void) const;
};

inline std::string SMRTTitle::MovieName(void) const { return movieName; }
inline UInt SMRTTitle::HoleNumber(void) const { return holeNumber; }
inline DNALength SMRTTitle::Start(void) const { return start; }
inline DNALength SMRTTitle::End(void) const { return end; }
inline SMRTTitle::operator bool(void) const { return isSMRTTitle; }

#endif