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

View File

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