Represents a data item in the structure or reaction data block of a MDL SD- or RD-File data record (see [CTFILE]).
More...
#include <StringDataBlock.hpp>
Represents a data item in the structure or reaction data block of a MDL SD- or RD-File data 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<()
◆ operator>()
◆ operator<=()
◆ operator>=()
The documentation for this class was generated from the following file: