--- libgig/trunk/src/Serialization.h 2017/05/07 15:32:43 3155 +++ libgig/trunk/src/Serialization.h 2017/05/08 17:18:07 3156 @@ -34,6 +34,7 @@ #include #include #include +#include /** @brief Serialization / deserialization framework. * @@ -102,6 +103,11 @@ OPERATION_DESERIALIZE }; + enum time_base_t { + LOCAL_TIME, + UTC_TIME + }; + template bool IsEnum(const T& data) { return __is_enum(T); @@ -587,6 +593,14 @@ void setBoolValue(Object& object, bool value); void setEnumValue(Object& object, uint64_t value); String valueAsString(const Object& object); + String name() const; + void setName(String name); + String comment() const; + void setComment(String comment); + time_t timeStampCreated() const; + time_t timeStampModified() const; + tm dateTimeCreated(time_base_t base = LOCAL_TIME) const; + tm dateTimeModified(time_base_t base = LOCAL_TIME) const; protected: // UID resolver for non-pointer types @@ -694,6 +708,10 @@ UID m_root; RawData m_rawData; bool m_isModified; + String m_name; + String m_comment; + time_t m_timeCreated; + time_t m_timeModified; }; /**