/usr/include/pbseq/alignment/utils/FileUtils.hpp is in libblasr-dev 0~20161219-1.
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 | #ifndef _BLASR_FILE_UTILS_HPP_
#define _BLASR_FILE_UTILS_HPP_
#include <iostream>
#include <fstream>
#include <string>
#include <sys/fcntl.h>
#include <sys/mman.h>
#include <sys/types.h> // for lseek
#include <unistd.h> // for lseek
#include <stdio.h>
using namespace std;
bool FileExists(string &fileName);
void CriticalOpenRead(string &fileName, ifstream &file, std::ios::openmode mode=std::ios::in);
int OpenRead(string &fileName, ifstream &file, std::ios::openmode mode=std::ios::in);
void CriticalOpenWrite(string &fileName, ofstream &file, std::ios::openmode mode=std::ios::out);
int OpenWrite(string &fileName, ofstream &file, std::ios::openmode mode=std::ios::out);
int CountLinesInFile(string fileName);
#endif
|