1 #ifndef __DESCRIPTION__
2 #define __DESCRIPTION__
4 //------------------------------------
5 // generation of an xml description
6 //------------------------------------
14 #include "smartpointer.hh"
20 void extractMetadata(const string& fulllabel, string& label, map<string, set<string> >& metadata);
21 string extractName(Tree fulllabel);
34 int fActiveWidgetCount;
35 int fPassiveWidgetCount;
36 list<string> fActiveLines;
37 list<string> fPassiveLines;
38 list<string> fLayoutLines;
39 list<int> fLayoutTabs;
44 Description(): /*fName("Unknow"),
53 fActiveWidgetCount(0),
54 fPassiveWidgetCount(0)
57 Description* name(const string& s) { fName = s; return this; }
58 Description* author(const string& s) { fAuthor = s; return this; }
59 Description* copyright(const string& s) { fCopyright = s; return this; }
60 Description* license(const string& s) { fLicense = s; return this; }
61 Description* version(const string& s) { fVersion = s; return this; }
63 Description* inputs(int n) { fInputs = n; return this; }
64 Description* outputs(int n) { fOutputs = n; return this; }
67 void print(int n, ostream& fout);
71 void addGroup(int level, Tree t);
72 int addWidget(Tree label, Tree varname, Tree sig);
74 void tab (int n, ostream& fout);
75 void addActiveLine(const string& l) { fActiveLines.push_back(l);}
76 void addPassiveLine(const string& l) { fPassiveLines.push_back(l);}
77 void addLayoutLine(int n, const string& l) { fLayoutTabs.push_back(n); fLayoutLines.push_back(l);}