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)
const HeaderMap & getHeader() const
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.
const EntryMap & getEntries() const
bool hasHeader(const String &name) const
bool hasEntry(const String &name) const
Index getIntValue(const String &name) const
HeaderMap header_
Entries from the header section.
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