projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pot/merge.
[dcpomatic.git]
/
src
/
lib
/
user_property.h
diff --git
a/src/lib/user_property.h
b/src/lib/user_property.h
index b27cd4151f3693f6b021ee6d62992fb10df20150..ffbb99a5f4b81f1f19f233607eab59241da23715 100644
(file)
--- a/
src/lib/user_property.h
+++ b/
src/lib/user_property.h
@@
-21,20
+21,27
@@
#ifndef DCPOMATIC_USER_PROPERTY_H
#define DCPOMATIC_USER_PROPERTY_H
#ifndef DCPOMATIC_USER_PROPERTY_H
#define DCPOMATIC_USER_PROPERTY_H
-#include
"raw_convert.h"
+#include
<dcp/locale_convert.h>
class UserProperty
{
public:
class UserProperty
{
public:
+ enum Category {
+ GENERAL,
+ VIDEO,
+ AUDIO,
+ LENGTH
+ };
+
template <class T>
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_)
: category (category_)
, key (key_)
- , value (
raw
_convert<std::string> (value_))
+ , value (
dcp::locale
_convert<std::string> (value_))
, unit (unit_)
{}
, unit (unit_)
{}
-
std::string
category;
+
Category
category;
std::string key;
std::string value;
std::string unit;
std::string key;
std::string value;
std::string unit;