very small modification

This commit is contained in:
The Coriolis Project 2008-04-02 19:01:52 +00:00
parent 7f2370713b
commit 8852389baa
2 changed files with 9 additions and 5 deletions

View File

@ -86,6 +86,10 @@ void DtrAccess::_postCreate() {
while(m!=n) { while(m!=n) {
Layer * layer = tech->getLayer(Name(*m)); Layer * layer = tech->getLayer(Name(*m));
if(!layer) { if(!layer) {
for_each_layer(l, tech->getLayers()) {
cerr << l << endl;
end_for;
}
throw Error("Error : in function DtrAccess::_postCreate , Can't find Layer " throw Error("Error : in function DtrAccess::_postCreate , Can't find Layer "
+ getString(*m) + " in technology file when parser DtrFile."); + getString(*m) + " in technology file when parser DtrFile.");
// cerr << Warning("In function DtrAccess::_postCreate , Can't find Layer " // cerr << Warning("In function DtrAccess::_postCreate , Can't find Layer "

View File

@ -1,20 +1,20 @@
#include <iostream> #include <iostream>
#include "DataBase.h"
#include "Library.h" #include "Library.h"
#include "Warning.h" #include "Warning.h"
using namespace Hurricane; using namespace Hurricane;
#include "crlcore/CDataBase.h"
using namespace CRL;
#include "TrMos.h" #include "TrMos.h"
using namespace DEVICE; using namespace DEVICE;
int main() { int main() {
try { try {
cout << "simple analogic test" << endl; cout << "simple analogic test" << endl;
CDataBase* db = CDataBase::create(); DataBase* db = DataBase::create();
Library* workLibrary = Library::create(db->getRootLibrary(), Name("WorkLibrary")); Technology* technology = Technology::create(db);
Library* rootLibrary = Library::create(db, Name("RootLibrary"));
Library* workLibrary = Library::create(rootLibrary, Name("WorkLibrary"));
TrMos* trmos = TrMos::create(workLibrary, Name("MosTr")); TrMos* trmos = TrMos::create(workLibrary, Name("MosTr"));
exit(0); exit(0);
} catch (Hurricane::Warning& w) { } catch (Hurricane::Warning& w) {