]> Creatis software - bbtk.git/blob - packages/std/src/bbstdMapToLst.h
#3423 BBTK Feature New Normal - box std MapToLst
[bbtk.git] / packages / std / src / bbstdMapToLst.h
1 //===== 
2 // 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)
3 //===== 
4 #ifndef __bbstdMapToLst_h_INCLUDED__
5 #define __bbstdMapToLst_h_INCLUDED__
6
7 #include "bbstd_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10 #include <vector>
11 #include <map>
12 typedef std::map <std::string, std::string> mapString;
13
14 namespace bbstd
15 {
16
17 class bbstd_EXPORT MapToLst
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(MapToLst,bbtk::AtomicBlackBox);
22 //===== 
23 // 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)
24 //===== 
25   BBTK_DECLARE_INPUT(InMap,mapString);
26   BBTK_DECLARE_OUTPUT(LstTitles,std::vector<std::string>);
27   BBTK_DECLARE_OUTPUT(LstValues,std::vector<std::string>);
28   BBTK_PROCESS(Process);
29   void Process();
30 //===== 
31 // 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)
32 //===== 
33 };
34
35 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MapToLst,bbtk::AtomicBlackBox);
36   BBTK_NAME("MapToLst");
37   BBTK_AUTHOR("InfoDev");
38   BBTK_DESCRIPTION("No Description.");
39   BBTK_CATEGORY("empty");
40   BBTK_INPUT(MapToLst,InMap,"Input map",mapString,"");
41   BBTK_OUTPUT(MapToLst,LstTitles,"List of map.first",std::vector<std::string>,"");
42   BBTK_OUTPUT(MapToLst,LstValues,"List of map.second",std::vector<std::string>,"");
43 BBTK_END_DESCRIBE_BLACK_BOX(MapToLst);
44 //===== 
45 // 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)
46 //===== 
47 }
48 // EO namespace bbstd
49
50 #endif // __bbstdMapToLst_h_INCLUDED__
51