/usr/include/libmstoolkit/RAWReader.h is in libmstoolkit-dev 77.0.0-1+b3.
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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | #ifndef _RAWREADER_H
#define _RAWREADER_H
#ifdef _MSC_VER
#include "MSToolkitTypes.h"
#include "Spectrum.h"
#include <algorithm>
#include <iostream>
#include <vector>
//#include <cstring>
//#include <cstdlib>
//#include <iomanip>
//Explicit path is needed on systems where Xcalibur installs with errors
//For example, Vista-64bit
//#import "C:\Xcalibur\system\programs\XRawfile2.dll"
#import "MSFileReader.XRawfile2.dll" rename_namespace("XRawfile")
using namespace XRawfile;
using namespace std;
namespace MSToolkit {
class RAWReader {
public:
//Constructors & Destructors
RAWReader();
~RAWReader();
//Public Functions
void getInstrument(char* str);
long getLastScanNumber();
void getManufacturer(char* str);
long getScanCount();
bool getStatus();
bool lookupRT(char* c, int scanNum, float& rt);
bool readRawFile(const char* c, Spectrum& s, int scNum=0);
void setAverageRaw(bool b, int width=1, long cutoff=1000);
void setLabel(bool b); //label data contains all centroids (including noise and excluded peaks)
void setMSLevelFilter(vector<MSSpectrumType>* v);
void setRawFilter(char* c);
void setRawFilterExact(bool b);
private:
//Data Members
bool bRaw;
bool rawAvg;
bool rawFileOpen;
bool rawLabel;
bool rawUserFilterExact;
char rawInstrument[256];
char rawManufacturer[256];
char rawUserFilter[256];
int rawAvgWidth;
long rawAvgCutoff;
long rawCurSpec;
long rawTotSpec;
IXRawfilePtr m_Raw;
vector<MSSpectrumType>* msLevelFilter;
//Private Functions
int calcChargeState(double precursormz, double highmass, VARIANT* varMassList, long nArraySize);
double calcPepMass(int chargestate, double precursormz);
MSSpectrumType evaluateFilter(long scan, char* chFilter, vector<double>& MZs, bool& bCentroid, double& cv, MSActivation& act);
bool initRaw();
};
}
#endif
#endif
|