bib-element-Container More...
#include <BibElement.hpp>
Public Member Functions | |
auto | isCompliantTo (const StyleProperties &props) const -> bool |
auto | operator== (const BibElement &other) const noexcept -> bool |
auto | findAttribute (const std::string &key) const noexcept -> std::optional< Field > |
Public Attributes | |
std::string | id |
the elements (unique) id More... | |
std::string | style |
the style-name of the element More... | |
std::vector< Field > | attributes |
the attributes of the element More... | |
bib-element-Container
Stores information of a bib-element
Definition at line 14 of file BibElement.hpp.
|
noexcept |
Finds an attribute for a given Key in the Elements attribute
key | the key for the attribute to look for |
Definition at line 46 of file BibElement.cpp.
Referenced by Parser::sortElements().
auto BibElement::isCompliantTo | ( | const StyleProperties & | props | ) | const -> bool |
Checks if the bib-element is compliant to given style-properties
props | style-properties to check compliance against |
Definition at line 12 of file BibElement.cpp.
References Field::name.
Referenced by Parser::filterElements().
|
noexcept |
Equality-Operator for two bib-elements
other | bib-element to compare with |
Definition at line 37 of file BibElement.cpp.
std::vector<Field> BibElement::attributes |
the attributes of the element
Definition at line 17 of file BibElement.hpp.
Referenced by AbstractGenerator::uniqueFieldsOf().
std::string BibElement::id |
the elements (unique) id
Definition at line 15 of file BibElement.hpp.
std::string BibElement::style |
the style-name of the element
Definition at line 16 of file BibElement.hpp.