Fix typo in log message.
[dcpomatic.git] / src / lib / user_property.h
index b27cd4151f3693f6b021ee6d62992fb10df20150..fb597eeb64ff67dd74e5b2b67658a017572a228d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_USER_PROPERTY_H
 #define DCPOMATIC_USER_PROPERTY_H
 
-#include "raw_convert.h"
+
+#include <dcp/locale_convert.h>
+
 
 class UserProperty
 {
 public:
+       enum Category {
+               GENERAL,
+               VIDEO,
+               AUDIO,
+               LENGTH
+       };
+
        template <class T>
-       UserProperty (std::string category_, std::string key_, T value_, std::string unit_ = "")
+       UserProperty (Category category_, std::string key_, T value_, std::string unit_ = "")
                : category (category_)
                , key (key_)
-               , value (raw_convert<std::string> (value_))
+               , value (dcp::locale_convert<std::string> (value_))
                , unit (unit_)
        {}
 
-       std::string category;
+       Category category;
        std::string key;
        std::string value;
        std::string unit;
 };
 
+
 #endif