Represents a data item consisting of a header and a data payload.
More...
#include <StringDataBlock.hpp>
Represents a data item consisting of a header and a data payload.
Used to represent the individual entries in the structure or reaction data block of an MDL SD- or RD-File record (see [CTFILE]).
◆ StringDataBlockEntry() [1/2]
| CDPL::Chem::StringDataBlockEntry::StringDataBlockEntry |
( |
| ) |
|
|
inline |
Constructs a StringDataBlockEntry object with an empty data header and content.
◆ StringDataBlockEntry() [2/2]
| CDPL::Chem::StringDataBlockEntry::StringDataBlockEntry |
( |
const std::string & |
header, |
|
|
const std::string & |
data |
|
) |
| |
|
inline |
Constructs a StringDataBlockEntry object with the specified data header and content.
- Parameters
-
| header | The data header. |
| data | The data content. |
◆ getHeader()
| const std::string& CDPL::Chem::StringDataBlockEntry::getHeader |
( |
| ) |
const |
Returns the data header.
- Returns
- The data header.
◆ setHeader()
| void CDPL::Chem::StringDataBlockEntry::setHeader |
( |
const std::string & |
header | ) |
|
Sets the data header.
- Parameters
-
| header | The new data header. |
◆ getData()
| const std::string& CDPL::Chem::StringDataBlockEntry::getData |
( |
| ) |
const |
Returns the stored data content.
- Returns
- The stored data content.
◆ setData()
| void CDPL::Chem::StringDataBlockEntry::setData |
( |
const std::string & |
data | ) |
|
Sets the data content.
- Parameters
-
| data | The new data content. |
◆ operator==()
Equality comparison operator.
- Parameters
-
| entry | The other StringDataBlockEntry object to be compared with. |
- Returns
true if the data entry headers and values compare equal, and false otherwise.
◆ operator!=()
Inequality comparison operator.
The result is equivalent to !(*this == entry).
- Parameters
-
| entry | The other StringDataBlockEntry object to be compared with. |
- Returns
true if the data headers and/or values compare non-equal, and false otherwise.
- See also
- operator==()
◆ operator<()
Less-than comparison operator (lexicographic ordering by header, then data).
- Parameters
-
| entry | The other StringDataBlockEntry object to be compared with. |
- Returns
true if *this is less than entry, and false otherwise.
◆ operator>()
Greater-than comparison operator (lexicographic ordering by header, then data).
- Parameters
-
| entry | The other StringDataBlockEntry object to be compared with. |
- Returns
true if *this is greater than entry, and false otherwise.
◆ operator<=()
Less-than-or-equal comparison operator (lexicographic ordering by header, then data).
- Parameters
-
| entry | The other StringDataBlockEntry object to be compared with. |
- Returns
true if *this is less than or equal to entry, and false otherwise.
◆ operator>=()
Greater-than-or-equal comparison operator (lexicographic ordering by header, then data).
- Parameters
-
| entry | The other StringDataBlockEntry object to be compared with. |
- Returns
true if *this is greater than or equal to entry, and false otherwise.
The documentation for this class was generated from the following file: