/// The attribute enters in label constitution (for printing)
static const unsigned int LABEL;
+ /// Types
+ /// The attribute is of numeric type
+ static const unsigned int NUMBER=1;
+ /// The attribute is of string type
+ static const unsigned int STRING=2;
+ /// The attribute's type is unknown
+ static const unsigned int UNKNOWN=0;
+
/// Default ctor
AttributeDescriptor()
: mKey(""), mName(""), mGroup(0), mElement(0), mFlags(0)
unsigned short GetElement() const { return mElement; }
/// Returns the flags of the attribute
unsigned int GetFlags() const { return mFlags; }
+ /// Returns the type of the attribute
+ unsigned int GetType() const { return mType; }
/// Extracts group and element from a key of the form "Dgroup_elem"
static void GetDicomGroupElementFromKey(const std::string& key,
/// Replace simple quote by double quotes
/// Cut string at NULL chars
void CleanName(std::string& str) const;
+ ///Decodes the attribute into accepted types
+ void DecodeType();
private:
std::string mKey;
std::string mName;
unsigned short mGroup;
unsigned short mElement;
unsigned int mFlags;
+ unsigned int mType;
};
// EO class AttributeDescriptor
//=====================================================================