summaryrefslogtreecommitdiff
path: root/include/matchable.h
blob: 8dc59a42326658143da796da028ac0cc4b681505 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NEWSBOAT_MATCHABLE_H_
#define NEWSBOAT_MATCHABLE_H_

#include <string>

#include "3rd-party/optional.hpp"

namespace newsboat {

class Matchable {
public:
	Matchable() = default;
	virtual ~Matchable() = default;
	virtual nonstd::optional<std::string> attribute_value(const std::string& attr)
	const =
		0;
};

} // namespace newsboat

#endif /* NEWSBOAT_MATCHABLE_H_ */