namespaces

This commit is contained in:
The Coriolis Project 2008-04-08 20:53:31 +00:00
parent e5892a9fb9
commit 51dd2b29b3
3 changed files with 7 additions and 9 deletions

View File

@ -10,7 +10,7 @@ using namespace Hurricane;
#include "Transistor.h" #include "Transistor.h"
#include "MetaTransistor.h" #include "MetaTransistor.h"
namespace Chamsin { namespace Hurricane {
// **************************************************************************************************** // ****************************************************************************************************
// MetaTransistor implementation // MetaTransistor implementation

View File

@ -14,7 +14,7 @@ using namespace Hurricane;
#include "Transistor.h" #include "Transistor.h"
namespace Chamsin { namespace Hurricane {
// **************************************************************************************************** // ****************************************************************************************************
// Transistor::Polarity implementation // Transistor::Polarity implementation

View File

@ -1,21 +1,19 @@
#include <iostream> #include <iostream>
#include "DataBase.h"
#include "Technology.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;
DataBase* db = DataBase::create(); CDataBase* db = CDataBase::create();
Technology* technology = Technology::create(db, Name("MyTechnology")); Library* workLibrary = Library::create(db->getRootLibrary(), Name("WorkLibrary"));
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) {