/usr/include/pbseq/pbdata/sam/CigarString.h is in libpbdata-dev 0~20161219-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #ifndef _BLASR_SAM_CIGAR_STRING_HPP_
#define _BLASR_SAM_CIGAR_STRING_HPP_
#include <string>
#include <sstream>
class CigarString : public std::string {
public:
void Vectorize(std::vector<int> &lengths, std::vector<char> &operations) {
std::stringstream strm;
strm.str(*this);
while (strm) {
int l;
char o;
if ((strm >> l >> o)) {
lengths.push_back(l);
operations.push_back(o);
}
}
}
};
#endif
|