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) {}
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
JCAMPFile(const String &name, OpenMode open_mode=std::ios::in)
std::pair< String, JCAMPValue > KeyValuePair
a key-value pair
StringHashMap< JCAMPValue > EntryMap
A hash map containing the JCAMP entries.
bool hasHeader(const String &name) const
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
StringHashMap< String > HeaderMap
A hash map containing the header entries.
double getDoubleValue(const String &name) const
EntryMap entries_
Entries from the key-value section.
std::vector< double > numeric_value
std::ios::openmode OpenMode