equal
deleted
inserted
replaced
20 #include "LayPerfWriter.h" |
20 #include "LayPerfWriter.h" |
21 #include "Lay2Cdl.h" // for static methods |
21 #include "Lay2Cdl.h" // for static methods |
22 #include "Layout.h" // for constants |
22 #include "Layout.h" // for constants |
23 #include "CodeGenConsts.h" |
23 #include "CodeGenConsts.h" |
24 |
24 |
25 #include <cdlcompilertoolkit/cdltkutil.h> |
25 #include <CdlCompilerToolkit/CdlTkUtil.h> |
26 |
26 |
27 #include <iostream> |
27 #include <iostream> |
28 #include <sstream> |
28 #include <sstream> |
29 #include <set> |
29 #include <set> |
30 #include <fstream> |
30 #include <fstream> |
94 out << "DECLARE_LOCAL_VARS_LIMITS" << endl; |
94 out << "DECLARE_LOCAL_VARS_LIMITS" << endl; |
95 |
95 |
96 out << "\n// Layout MACROs for LAF Table : "; |
96 out << "\n// Layout MACROs for LAF Table : "; |
97 out << iTable.Name() << endl; |
97 out << iTable.Name() << endl; |
98 |
98 |
99 for (int i=0; i<iTable.size(); ++i) |
99 for (unsigned int i=0; i<iTable.size(); ++i) |
100 { |
100 { |
101 WriteWindowLine(out, *iTable[i]); |
101 WriteWindowLine(out, *iTable[i]); |
102 } |
102 } |
103 |
103 |
104 out << endl; |
104 out << endl; |
203 out << "DECLARE_LOCAL_VARS_LIMITS" << endl; |
203 out << "DECLARE_LOCAL_VARS_LIMITS" << endl; |
204 |
204 |
205 out << "// Layout MACROs for LAF Table : "; |
205 out << "// Layout MACROs for LAF Table : "; |
206 out << iTable.Name() << endl; |
206 out << iTable.Name() << endl; |
207 |
207 |
208 for (int i=0; i<iTable.size(); ++i) |
208 for (unsigned int i=0; i<iTable.size(); ++i) |
209 { |
209 { |
210 WriteTextLine(out, *iTable[i]); |
210 WriteTextLine(out, *iTable[i]); |
211 } |
211 } |
212 |
212 |
213 out << endl; |
213 out << endl; |
253 cout << "writing layout " << iName << endl; |
253 cout << "writing layout " << iName << endl; |
254 string cdlFileName(CdlTkUtil::StripPath(aCdlName)); |
254 string cdlFileName(CdlTkUtil::StripPath(aCdlName)); |
255 string ifName(LayoutToCdl::InterfaceName(cdlFileName)); |
255 string ifName(LayoutToCdl::InterfaceName(cdlFileName)); |
256 |
256 |
257 out << "// function implementations: " << endl; |
257 out << "// function implementations: " << endl; |
258 int tableId = 0; |
258 unsigned int tableId = 0; |
259 for (TLayout::iterator pTab = iLayout.begin(); pTab != iLayout.end(); ++pTab) |
259 for (TLayout::iterator pTab = iLayout.begin(); pTab != iLayout.end(); ++pTab) |
260 { |
260 { |
261 TLayPerfTableWriter writer(**pTab, ifName, tableId++); |
261 TLayPerfTableWriter writer(**pTab, ifName, tableId++); |
262 writer.Write(out); |
262 writer.Write(out); |
263 } |
263 } |