/usr/include/pbihdf/HDFAlnGroup.hpp is in libpbihdf-dev 0~20151014+gitbe5d1bf-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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef _BLASR_HDF_ALN_GROUP_HPP_
#define _BLASR_HDF_ALN_GROUP_HPP_
#include "HDFArray.h"
#include "HDFGroup.h"
class HDFAlnGroup {
public:
HDFGroup alnGroup;
HDFArray<unsigned int> idArray;
HDFStringArray pathArray;
void Initialize(HDFGroup &parent) {
alnGroup.Initialize(parent.group, "AlnGroup");
idArray.Initialize(alnGroup.group, "ID");
}
void Read(AlnGroup &aln) {
// Seem to write data in this HDFAlnGroup obj to AlnGroup & aln
int idNElem = idArray.arrayLength;
int pathNElem = pathArray.arrayLength;
if (idNElem > 0) {
aln.id.resize(idNElem);
idArray.Read(0, idNElem);
aln.path.resize(pathNElem);
unsigned int i;
for (i = 0; i < pathNElem; i++) {
pathArray.Read(i, i+1, &aln.path[i]);
}
}
}
int AddPath(string &path) {
int id;
pathArray.Write(&path, 1);
id = pathArray.size();
idArray.Write(&id, 1);
return id;
}
~HDFAlnGroup() {
alnGroup.Close();
}
};
#endif
|