BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bruker1DFile.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_FORMAT_BRUKER1DFILE_H
6 #define BALL_FORMAT_BRUKER1DFILE_H
7 
8 #ifndef BALL_FORMAT_JCAMPFILE_H
9 # include <BALL/FORMAT/JCAMPFile.h>
10 #endif
11 
12 #ifndef BALL_DATATYPE_REGULARDATA1D_H
14 #endif
15 
16 namespace BALL
17 {
23  : public File
24  {
25  public:
26 
30 
33  Bruker1DFile();
34 
39  Bruker1DFile(const String& name, OpenMode open_mode = std::ios::in | std::ios::binary);
40 
42  virtual ~Bruker1DFile();
43 
45 
48 
52  void read(const String& name);
53 
55  void read();
56 
59  const RegularData1D& getData() const { return spectrum_; }
60 
62  const JCAMPFile::EntryMap& getParameters() const { return pars_.getEntries();}
63 
65  const JCAMPFile::HeaderMap& getHeader() const { return pars_.getHeader();}
66 
68 
69  private:
70  const Bruker1DFile& operator = (const Bruker1DFile& file) ;
71 
72  protected:
73 
76 
79 
81  };
82 }
83 
84 #endif // BALL_FORMAT_BRUKER1DFILE_H
JCAMPFile pars_
The parameters from the procs file.
Definition: bruker1DFile.h:78
const RegularData1D & getData() const
Definition: bruker1DFile.h:59
std::ios::openmode OpenMode
Definition: file.h:168
const JCAMPFile::HeaderMap & getHeader() const
Definition: bruker1DFile.h:65
RegularData1D spectrum_
Definition: bruker1DFile.h:80
#define BALL_EXPORT
Definition: COMMON/global.h:50
const JCAMPFile::EntryMap & getParameters() const
Definition: bruker1DFile.h:62