5#ifndef BALL_FORMAT_JCAMPFILE_H
6#define BALL_FORMAT_JCAMPFILE_H
8#ifndef BALL_FORMAT_LINEBASEDFILE_H
12#ifndef BALL_DATATYPE_STRINGHASHMAP_H
58 JCAMPValue() : string_value(
""), numeric_value(), type(STRING) {}
std::pair< String, JCAMPValue > KeyValuePair
a key-value pair
JCAMPFile(const String &name, OpenMode open_mode=std::ios::in)
bool hasHeader(const String &name) const
StringHashMap< JCAMPValue > EntryMap
A hash map containing the JCAMP entries.
bool hasEntry(const String &name) const
Index getIntValue(const String &name) const
const EntryMap & getEntries() const
HeaderMap header_
Entries from the header section.
const HeaderMap & getHeader() const
double getDoubleValue(const String &name) const
EntryMap entries_
Entries from the key-value section.
StringHashMap< String > HeaderMap
A hash map containing the header entries.
std::vector< double > numeric_value
std::ios::openmode OpenMode