]> Creatis software - creaImageIO.git/blobdiff - bbtk/src/bbcreaImageIOGetDicomAttributesFromMaps.h
Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/creaImageIO
[creaImageIO.git] / bbtk / src / bbcreaImageIOGetDicomAttributesFromMaps.h
diff --git a/bbtk/src/bbcreaImageIOGetDicomAttributesFromMaps.h b/bbtk/src/bbcreaImageIOGetDicomAttributesFromMaps.h
new file mode 100644 (file)
index 0000000..3b98bfd
--- /dev/null
@@ -0,0 +1,49 @@
+//===== 
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//===== 
+#ifndef __bbcreaImageIOGetDicomAttributesFromMaps_h_INCLUDED__
+#define __bbcreaImageIOGetDicomAttributesFromMaps_h_INCLUDED__
+#include "bbcreaImageIO_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+namespace bbcreaImageIO
+{
+
+typedef std::map <std::string, std::string> mapString;
+
+class bbcreaImageIO_EXPORT GetDicomAttributesFromMaps
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(GetDicomAttributesFromMaps,bbtk::AtomicBlackBox);
+//===== 
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//===== 
+  BBTK_DECLARE_INPUT(In,std::vector< mapString > );
+  BBTK_DECLARE_INPUT(KeyDicom, std::string);
+  BBTK_DECLARE_OUTPUT(Out,std::vector <std::string>);
+  BBTK_PROCESS(Process);
+  void Process();
+//===== 
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(GetDicomAttributesFromMaps,bbtk::AtomicBlackBox);
+BBTK_NAME("GetDicomAttributesFromMaps");
+BBTK_AUTHOR("Info-Dev, Eduardo DAVIL");
+BBTK_DESCRIPTION("eduardo.davila[at]creatis.insa-lyon.fr -");
+BBTK_CATEGORY("empty");
+  BBTK_INPUT(GetDicomAttributesFromMaps,In,"Vector of maps with DICOM attributes",std::vector< mapString >,"");
+  BBTK_INPUT(GetDicomAttributesFromMaps,KeyDicom,"Key DICOM",std::string ,"");
+  BBTK_OUTPUT(GetDicomAttributesFromMaps,Out,"Vector of the attribute asked.",std::vector <std::string>,"");
+BBTK_END_DESCRIBE_BLACK_BOX(GetDicomAttributesFromMaps);
+//===== 
+// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
+//===== 
+}
+// EO namespace bbcreaImageIO
+
+#endif // __bbcreaImageIOGetDicomAttributesFromMaps_h_INCLUDED__
+