summaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-26 23:02:10 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-21 21:57:18 +0200
commit0fa60920228c591f1183149d79c88302d3ce01fb (patch)
treeafedcb6e3dbae9011e246b21c23839af687939c4 /src/types.h
parente18addc9029f56c67aa40254bcfa40f8b072866f (diff)
Add ContentVersion class.
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index c600b790..7b2faa7c 100644
--- a/src/types.h
+++ b/src/types.h
@@ -322,6 +322,23 @@ public:
extern bool operator== (Rating const & a, Rating const & b);
extern std::ostream& operator<< (std::ostream& s, Rating const & r);
+
+class ContentVersion
+{
+public:
+ ContentVersion () {}
+
+ ContentVersion (std::string id_, std::string label_text_)
+ : id (id_)
+ , label_text (label_text_)
+ {}
+
+ void as_xml (xmlpp::Element* parent) const;
+
+ std::string id;
+ std::string label_text;
+};
+
}
#endif