File: main.cpp

package info (click to toggle)
pbbam 2.4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,148 kB
  • sloc: cpp: 60,214; xml: 2,908; ansic: 660; sh: 275; python: 203; makefile: 187
file content (22 lines) | stat: -rw-r--r-- 506 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
#include <iostream>
#include <stdexcept>
#include <tuple>

#include <pbbam/BamReader.h>
#include <pbbam/SamReader.h>

int main(int /* argc */, char* argv[])
{
    try {
        if (std::string{argv[1]} == "bam") {
            PacBio::BAM::BamReader reader{"-"};
            std::ignore = reader;
        } else {
            PacBio::BAM::SamReader reader{"-"};
            std::ignore = reader;
        }
    } catch (const std::exception& e) {
        std::cout << e.what() << '\n';
    }
    return 0;
}