29 #ifndef CDPL_CHEM_STRINGDATABLOCK_HPP
30 #define CDPL_CHEM_STRINGDATABLOCK_HPP
65 header(header), data(data) {}
160 void addEntry(
const std::string& header,
const std::string& data)
166 const char* getClassName()
const
168 return "StringDataBlock";
Definition of class CDPL::Util::Array.
Definition of the preprocessor macro CDPL_CHEM_API.
#define CDPL_CHEM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Represents a data item consisting of a header and a data payload.
Definition: StringDataBlock.hpp:51
StringDataBlockEntry(const std::string &header, const std::string &data)
Constructs a StringDataBlockEntry object with the specified data header and content.
Definition: StringDataBlock.hpp:64
void setHeader(const std::string &header)
Sets the data header.
bool operator<=(const StringDataBlockEntry &entry) const
Less-than-or-equal comparison operator (lexicographic ordering by header, then data).
bool operator==(const StringDataBlockEntry &entry) const
Equality comparison operator.
void setData(const std::string &data)
Sets the data content.
const std::string & getHeader() const
Returns the data header.
bool operator<(const StringDataBlockEntry &entry) const
Less-than comparison operator (lexicographic ordering by header, then data).
const std::string & getData() const
Returns the stored data content.
bool operator!=(const StringDataBlockEntry &entry) const
Inequality comparison operator.
bool operator>=(const StringDataBlockEntry &entry) const
Greater-than-or-equal comparison operator (lexicographic ordering by header, then data).
bool operator>(const StringDataBlockEntry &entry) const
Greater-than comparison operator (lexicographic ordering by header, then data).
StringDataBlockEntry()
Constructs a StringDataBlockEntry object with an empty data header and content.
Definition: StringDataBlock.hpp:57
Array of Chem::StringDataBlockEntry objects.
Definition: StringDataBlock.hpp:149
void addEntry(const std::string &header, const std::string &data)
Appends a new entry with the supplied data header and content to the block.
Definition: StringDataBlock.hpp:160
std::shared_ptr< StringDataBlock > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated StringDataBlock instances.
Definition: StringDataBlock.hpp:153
Dynamic array class providing amortized constant time access to arbitrary elements.
Definition: Array.hpp:92
The namespace of the Chemical Data Processing Library.