From 51dd2b29b3e5821b13a05e54519a5689925ec407 Mon Sep 17 00:00:00 2001 From: The Coriolis Project Date: Tue, 8 Apr 2008 20:53:31 +0000 Subject: [PATCH] namespaces --- chamsin/src/analogic/MetaTransistor.cpp | 2 +- chamsin/src/analogic/Transistor.cpp | 2 +- chamsin/src/tests/AnalogicTest.cpp | 12 +++++------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/chamsin/src/analogic/MetaTransistor.cpp b/chamsin/src/analogic/MetaTransistor.cpp index 402574b0..08449e81 100644 --- a/chamsin/src/analogic/MetaTransistor.cpp +++ b/chamsin/src/analogic/MetaTransistor.cpp @@ -10,7 +10,7 @@ using namespace Hurricane; #include "Transistor.h" #include "MetaTransistor.h" -namespace Chamsin { +namespace Hurricane { // **************************************************************************************************** // MetaTransistor implementation diff --git a/chamsin/src/analogic/Transistor.cpp b/chamsin/src/analogic/Transistor.cpp index 95607d08..846b3c32 100644 --- a/chamsin/src/analogic/Transistor.cpp +++ b/chamsin/src/analogic/Transistor.cpp @@ -14,7 +14,7 @@ using namespace Hurricane; #include "Transistor.h" -namespace Chamsin { +namespace Hurricane { // **************************************************************************************************** // Transistor::Polarity implementation diff --git a/chamsin/src/tests/AnalogicTest.cpp b/chamsin/src/tests/AnalogicTest.cpp index 7c88858e..05855b86 100644 --- a/chamsin/src/tests/AnalogicTest.cpp +++ b/chamsin/src/tests/AnalogicTest.cpp @@ -1,21 +1,19 @@ #include -#include "DataBase.h" -#include "Technology.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; - DataBase* db = DataBase::create(); - Technology* technology = Technology::create(db, Name("MyTechnology")); - Library* rootLibrary = Library::create(db, Name("RootLibrary")); - Library* workLibrary = Library::create(rootLibrary, Name("WorkLibrary")); + CDataBase* db = CDataBase::create(); + Library* workLibrary = Library::create(db->getRootLibrary(), Name("WorkLibrary")); TrMos* trmos = TrMos::create(workLibrary, Name("MosTr")); exit(0); } catch (Hurricane::Warning& w) {