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;
: 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,
} // 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__