+
+//--------------------------------------------------------------------
+void clitk::AnatomicalFeatureDatabase::SetImageFilename(std::string tag, std::string f)
+{
+ m_MapOfTag[tag] = f;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+bool clitk::AnatomicalFeatureDatabase::TagExist(std::string tag)
+{
+ return (m_MapOfTag.find(tag) != m_MapOfTag.end());
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+void clitk::AnatomicalFeatureDatabase::SetDouble(std::string tag, double value)
+{
+ m_MapOfTag[tag] = clitk::toString(value);
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+double clitk::AnatomicalFeatureDatabase::GetDouble(std::string tag)
+{
+ if (!TagExist(tag)) {
+ clitkExceptionMacro("Could not find the tag <" << tag << "> of type Double in the DB");
+ return -1;
+ }
+
+ double a;
+ if (!clitk::fromString<double>(a, m_MapOfTag[tag])) {
+ clitkExceptionMacro("Error while reading Double (tag='" << tag << "'), could not convert '"
+ << m_MapOfTag[tag] << "' into double.");
+ }
+ return a;
+}
+//--------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------
+void clitk::AnatomicalFeatureDatabase::RemoveTag(TagType tag)
+{
+ if (TagExist(tag)) {
+ m_MapOfTag.erase(m_MapOfTag.find(tag));
+ }
+}
+//--------------------------------------------------------------------