equal
deleted
inserted
replaced
23 #include "LayCdlCheck.h" |
23 #include "LayCdlCheck.h" |
24 #include <iostream> |
24 #include <iostream> |
25 #include "LayoutCompilerErr.h" |
25 #include "LayoutCompilerErr.h" |
26 #include "LayoutParse.h" |
26 #include "LayoutParse.h" |
27 #include "Lay2Cdl.h" |
27 #include "Lay2Cdl.h" |
28 #include <cdlcompilertoolkit/cdltkprocess.h> |
28 #include <CdlCompilerToolkit/CdlTkProcess.h> |
29 using namespace std; |
29 using namespace std; |
30 using namespace CdlCompilerToolkit; |
30 using namespace CdlCompilerToolkit; |
31 |
31 |
32 |
32 |
33 typedef LayoutProcessArgsErr<LayCdlCheck> LayCdlCheckArgsErr; |
33 typedef LayoutProcessArgsErr<LayCdlCheck> LayCdlCheckArgsErr; |
56 auto_ptr<CCdlTkInterface> iface(new CCdlTkInterface); |
56 auto_ptr<CCdlTkInterface> iface(new CCdlTkInterface); |
57 CCdlTkApiList& apiList = iface->ApiList(); |
57 CCdlTkApiList& apiList = iface->ApiList(); |
58 auto_ptr<CCdlTkInterface> xIface(new CCdlTkInterface); |
58 auto_ptr<CCdlTkInterface> xIface(new CCdlTkInterface); |
59 CCdlTkApiList& xApiList = xIface->ApiList(); |
59 CCdlTkApiList& xApiList = xIface->ApiList(); |
60 |
60 |
61 for (int arg = nextArg; arg < args.size(); arg++) |
61 for (unsigned int arg = nextArg; arg < args.size(); arg++) |
62 { |
62 { |
63 string fileName = args[arg]; |
63 string fileName = args[arg]; |
64 if (fileName.size() < 4) |
64 if (fileName.size() < 4) |
65 throw LayCdlCheckArgsErr(); |
65 throw LayCdlCheckArgsErr(); |
66 string ext = CdlTkUtil::ToLower(fileName.substr(fileName.size()-4)); |
66 string ext = CdlTkUtil::ToLower(fileName.substr(fileName.size()-4)); |