X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeAttributeDescriptor.h;h=1ae86ddeb89c94381cc240dbf589a31c6d33abf6;hb=cb539b100d38f3092d06430575f846c916235db4;hp=d2afc8515bacfca18f75fe37e2cb5b65c0cb72e6;hpb=384558d116ebb2ca264900f837c4a921d695515a;p=creaImageIO.git diff --git a/src2/creaImageIOTreeAttributeDescriptor.h b/src2/creaImageIOTreeAttributeDescriptor.h index d2afc85..1ae86dd 100644 --- a/src2/creaImageIOTreeAttributeDescriptor.h +++ b/src2/creaImageIOTreeAttributeDescriptor.h @@ -24,6 +24,8 @@ namespace creaImageIO static const unsigned int IDENTIFIER; /// The attribute enters in label constitution (for printing) static const unsigned int LABEL; + /// The attribute can be edited + static const unsigned int EDITABLE; /// Types /// The attribute is of numeric type @@ -81,6 +83,12 @@ namespace creaImageIO ///Decodes the type of attribute into the existing ones void DecodeType(unsigned int& type) const; + /// Determines if Attribute is a date + bool isDateEntry() const; + + /// Determines if Attribute is a time + bool isTimeEntry() const; + private: std::string mKey; std::string mName;