Loading...
Searching...
No Matches
bruker1DFile.h
Go to the documentation of this file.
// -*- 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
{
class BALL_EXPORT Bruker1DFile
: public File
{
public:
Bruker1DFile();
Bruker1DFile(const String& name, OpenMode open_mode = std::ios::in | std::ios::binary);
virtual ~Bruker1DFile();
void read(const String& name);
void read();
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_;
JCAMPFile pars_;
RegularData1D spectrum_;
};
}
#endif // BALL_FORMAT_BRUKER1DFILE_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
JCAMPFile.h
BALL::Bruker1DFile
Definition bruker1DFile.h:24
BALL::Bruker1DFile::Bruker1DFile
Bruker1DFile(const String &name, OpenMode open_mode=std::ios::in|std::ios::binary)
BALL::Bruker1DFile::spectrum_
RegularData1D spectrum_
Definition bruker1DFile.h:80
BALL::Bruker1DFile::~Bruker1DFile
virtual ~Bruker1DFile()
Destructor.
BALL::Bruker1DFile::read
void read()
BALL::Bruker1DFile::getParameters
const JCAMPFile::EntryMap & getParameters() const
Definition bruker1DFile.h:62
BALL::Bruker1DFile::min_
Size min_
Definition bruker1DFile.h:74
BALL::Bruker1DFile::max_
Size max_
Definition bruker1DFile.h:75
BALL::Bruker1DFile::getData
const RegularData1D & getData() const
Definition bruker1DFile.h:59
BALL::Bruker1DFile::read
void read(const String &name)
BALL::Bruker1DFile::pars_
JCAMPFile pars_
The parameters from the procs file.
Definition bruker1DFile.h:78
BALL::Bruker1DFile::getHeader
const JCAMPFile::HeaderMap & getHeader() const
Definition bruker1DFile.h:65
BALL::Bruker1DFile::Bruker1DFile
Bruker1DFile()
BALL::File::File
File()
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition file.h:165
BALL::JCAMPFile
Definition JCAMPFile.h:30
BALL::JCAMPFile::EntryMap
StringHashMap< JCAMPValue > EntryMap
A hash map containing the JCAMP entries.
Definition JCAMPFile.h:69
BALL::JCAMPFile::HeaderMap
StringHashMap< String > HeaderMap
A hash map containing the header entries.
Definition JCAMPFile.h:72
BALL::String
Definition string.h:57
BALL
Definition constants.h:13
BALL::RegularData1D
TRegularData1D< float > RegularData1D
Definition regularData1D.h:358
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
regularData1D.h