X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeAttributeDescriptor.h;h=1508868d3e29d26106221fdbd5dfdb5be1e8544c;hb=3e7eac431db6401f86374784eaa66ad276af1bac;hp=dc734bd62964469ef4d4600890d1366d5192866d;hpb=f4bdead5143dc3d816f1c2f2bd9786a21c843760;p=creaImageIO.git diff --git a/src2/creaImageIOTreeAttributeDescriptor.h b/src2/creaImageIOTreeAttributeDescriptor.h index dc734bd..1508868 100644 --- a/src2/creaImageIOTreeAttributeDescriptor.h +++ b/src2/creaImageIOTreeAttributeDescriptor.h @@ -9,16 +9,19 @@ namespace creaImageIO namespace tree { + /** + * \ingroup Tree + */ //===================================================================== - /// Descriptor of an attribute of a node of a tree (name, dicom group/element) + /// Descriptor of an attribute of a node of a Tree (name, dicom group/element) class AttributeDescriptor { public: /// Flags /// The attribute is hidden (not visible to user) - static const unsigned int HIDDEN; - /// The attribute enters in unique identifier constitution (KEY) - static const unsigned int KEY; + static const unsigned int PRIVATE; + /// The attribute enters in unique identifier constitution + static const unsigned int IDENTIFIER; /// The attribute enters in label constitution (for printing) static const unsigned int LABEL; @@ -27,6 +30,17 @@ namespace creaImageIO : mKey(""), mName(""), mGroup(0), mElement(0), mFlags(0) { } + /// Ctor with all explicitely + AttributeDescriptor(const std::string& key, + const std::string& name, + unsigned short group, + unsigned short element, + unsigned int flags) + : mKey(key), mName(name), mGroup(group), mElement(element), + mFlags(flags) + { + } + // Ctor with key, name and flags AttributeDescriptor(const std::string& key, const std::string& name, @@ -73,16 +87,7 @@ namespace creaImageIO } // EO namespace creaImageIO -/* -//===================================================================== -inline std::ostream& operator<<(std::ostream& s, -const creaImageIO::tree::AttributeDescriptor& d) -{ -s << "[" << d.key << ":" << d.name << "]"; -return s; -} -//===================================================================== -*/ + #endif // #ifndef __creaImageIOTreeAttributeDescriptor_h_INCLUDED__