/usr/include/BALL/FORMAT/bruker1DFile.h is in libball1.4-dev 1.4.1+20111206-3.
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 79 80 81 82 83 84 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_FORMAT_BRUKER1DFILE_H
#define BALL_FORMAT_BRUKER1DFILE_H
#ifndef BALL_FORMAT_JCAMPFILE_H
# include <BALL/FORMAT/JCAMPFile.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA1D_H
# include <BALL/DATATYPE/regularData1D.h>
#endif
namespace BALL
{
/** Bruker 1D spectrum format.
A class for handling Bruker one-dimensional NMR spectra.
\ingroup NMRFileFormats
*/
class BALL_EXPORT Bruker1DFile
: public File
{
public:
/** @name Constructors and Destructors
*/
//@{
/** Constructor
*/
Bruker1DFile();
/** Constructor
* @param name important: name of the Bruker-*directory*
* @throw Exception::FileNotFound if the file could not be opened
*/
Bruker1DFile(const String& name, OpenMode open_mode = std::ios::in | std::ios::binary);
/// Destructor
virtual ~Bruker1DFile();
//@}
/** @name Accessors
*/
//@{
/** Read a spectrum from <tt>name</tt>.
It will be stored in spectrum_
*/
void read(const String& name);
///
void read();
/** Return a pointer to the spectrum.
*/
const RegularData1D& getData() const { return spectrum_; }
///
const JCAMPFile::EntryMap& getParameters() const { return pars_.getEntries();}
///
const JCAMPFile::HeaderMap& getHeader() const { return pars_.getHeader();}
//@}
private:
const Bruker1DFile& operator = (const Bruker1DFile& file) ;
protected:
Size min_;
Size max_;
/// The parameters from the procs file
JCAMPFile pars_;
RegularData1D spectrum_;
};
}
#endif // BALL_FORMAT_BRUKER1DFILE_H
|