Lines Matching defs:attribute

72     std::optional<Error> SetAttribute(const std::string_view &attribute)
74 auto err = Validate(attribute);
79 SetFlags(attribute);
81 return Store(attribute);
84 void RemoveAttribute(const std::string &attribute)
86 RemoveFlags(attribute);
88 set_attributes_.erase(attribute);
91 bool GetAttribute(const std::string &attribute) const
93 return set_attributes_.find(attribute) != set_attributes_.cend();
96 std::optional<Error> SetAttributeValue(const std::string_view &attribute, const std::string_view &value)
98 auto err = Validate(attribute, value);
103 SetFlags(attribute, value);
105 return StoreValue(attribute, value);
108 std::vector<std::string> GetAttributeValues(const std::string &attribute) const
110 auto it = attributes_.find(attribute);
118 std::optional<std::string> GetAttributeValue(const std::string &attribute) const
120 auto values = GetAttributeValues(attribute);
148 virtual std::optional<Error> Validate(const std::string_view &attribute) const = 0;
150 virtual std::optional<Error> Validate(const std::string_view &attribute,
153 virtual std::optional<Error> StoreValue(const std::string_view &attribute, const std::string_view &value)
155 std::string key(attribute);
166 virtual std::optional<Error> Store(const std::string_view &attribute)
168 set_attributes_.emplace(attribute);
173 virtual void SetFlags(const std::string_view &attribute) = 0;
175 virtual void SetFlags(const std::string_view &attribute, const std::string_view &value) = 0;
177 virtual void RemoveFlags(const std::string_view &attribute) = 0;
179 virtual void RemoveFlags(const std::string_view &attribute, const std::string_view &value) = 0;
181 bool HasAttribute(const std::string_view &attribute) const
183 std::string key(attribute);
253 std::optional<Error> Store(const std::string_view &attribute) override;
255 std::optional<Error> StoreValue(const std::string_view &attribute, const std::string_view &value) override;
257 virtual bool IsAnnotationRecordAttribute([[maybe_unused]] const std::string_view &attribute) const
262 virtual bool IsAnnotationIdAttribute([[maybe_unused]] const std::string_view &attribute) const
267 virtual bool IsAnnotationElementTypeAttribute([[maybe_unused]] const std::string_view &attribute) const
273 [[maybe_unused]] const std::string_view &attribute) const
278 virtual bool IsAnnotationElementNameAttribute([[maybe_unused]] const std::string_view &attribute) const
283 virtual bool IsAnnotationElementValueAttribute([[maybe_unused]] const std::string_view &attribute) const
435 std::optional<Metadata::Error> MeetExpRecordAttribute(const std::string_view &attribute,
437 std::optional<Metadata::Error> MeetExpIdAttribute(const std::string_view &attribute, const std::string_view &value);
438 std::optional<Metadata::Error> MeetExpElementNameAttribute(const std::string_view &attribute,
440 std::optional<Metadata::Error> MeetExpElementTypeAttribute(const std::string_view &attribute,
442 std::optional<Metadata::Error> MeetExpElementArrayComponentTypeAttribute(const std::string_view &attribute,
444 std::optional<Metadata::Error> MeetExpElementValueAttribute(const std::string_view &attribute,
546 std::optional<Error> Validate(const std::string_view &attribute) const override;
548 std::optional<Error> Validate(const std::string_view &attribute, const std::string_view &value) const override;
550 void SetFlags(const std::string_view &attribute) override;
552 void SetFlags(const std::string_view &attribute, const std::string_view &value) override;
554 void RemoveFlags(const std::string_view &attribute) override;
556 void RemoveFlags(const std::string_view &attribute, const std::string_view &value) override;
582 std::optional<Error> StoreValue(const std::string_view &attribute, const std::string_view &value) override;
584 std::optional<Error> Validate(const std::string_view &attribute) const override;
586 std::optional<Error> Validate(const std::string_view &attribute, const std::string_view &value) const override;
588 void SetFlags(const std::string_view &attribute) override;
590 void SetFlags(const std::string_view &attribute, const std::string_view &value) override;
592 void RemoveFlags(const std::string_view &attribute) override;
594 void RemoveFlags(const std::string_view &attribute, const std::string_view &value) override;
596 virtual bool IsValueAttribute(const std::string_view &attribute)
598 return attribute == "value";
613 std::optional<Error> Validate(const std::string_view &attribute) const override;
615 std::optional<Error> Validate(const std::string_view &attribute, const std::string_view &value) const override;
617 void SetFlags(const std::string_view &attribute) override;
619 void SetFlags(const std::string_view &attribute, const std::string_view &value) override;
621 void RemoveFlags(const std::string_view &attribute) override;
623 void RemoveFlags(const std::string_view &attribute, const std::string_view &value) override;
628 std::optional<Error> Validate(const std::string_view &attribute) const override;
630 std::optional<Error> Validate(const std::string_view &attribute, const std::string_view &value) const override;
632 void SetFlags(const std::string_view &attribute) override;
634 void SetFlags(const std::string_view &attribute, const std::string_view &value) override;
636 void RemoveFlags(const std::string_view &attribute) override;
638 void RemoveFlags(const std::string_view &attribute, const std::string_view &value) override;