⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 openaccess读def,lef文件所用的源代码
💻 CPP
字号:
// *****************************************************************************// *****************************************************************************// main.cpp//// This file contains the main for the lef package's unit tester.//// *****************************************************************************// Except as specified in the OpenAccess terms of use of Cadence or Silicon// Integration Initiative, this material may not be copied, modified,// re-published, uploaded, executed, or distributed in any way, in any medium,// in whole or in part, without prior written permission from Cadence.////                Copyright 2002-2005 Cadence Design Systems, Inc.//                           All Rights Reserved.////  $Author: sailajad $//  $Revision: 1.31 $//  $Date: 2005/08/05 01:46:36 $//  $State: Exp $// *****************************************************************************// *****************************************************************************#include "oaLefTest.h"#include "oaDefTest.h"#include "oaDefTest.inl"#include "oaLefTest.inl"#if defined(OA_STATIC)extern "C" void oaDMTurboInit();extern "C" void oaDMFileSysInit();#endif// *****************************************************************************// oaLefDefTestBuild// *****************************************************************************class oaLefDefTestBuild : public oa::oaBuildInfo {			    oaLefDefTestBuild() : oa::oaBuildInfo("oaLefDefTest",								OA_BUILD_NAME,								OA_BUILD_TIME,								OA_BUILD_NUMBER) {}  private:    static oaLefDefTestBuild	    buildInfo;};// *****************************************************************************// Initialize Static Members// *****************************************************************************oaLefDefTestBuild		    oaLefDefTestBuild::buildInfo;// *****************************************************************************// oaLefDefTestApp - this class exists to workaround purify ABR bug// *****************************************************************************class oaLefDefTestApp : public oaTestApp<oaTestOptions>{  public:				    oaLefDefTestApp(const oaString  &usage);};oaLefDefTestApp::oaLefDefTestApp(const oaString	&usage): oaTestApp<oaTestOptions>(usage){}// *****************************************************************************// main()//// This is the main entry point for the oaLefDefTest application.// *****************************************************************************intmain(int    argc,      char   *argv[]){    // Initialize required OpenAccess modules.    oaDesignInit();#if defined(OA_STATIC)    oaDMTurboInit();    oaDMFileSysInit();#endif    // Create unit test objects.    // LEF ALL syntax tests    LefTest53    all53Test("LEF53_01");    LefTest54    all54Test("LEF54_01");    LefTest55    all55Test("LEF55_01");    LefTest56    all56Test("LEF56_01");    LefTestError errorTest("LEF_error");    // LEF Options tests    LefTestUpdate     updateTest("LEF_update");    LefTestOverwrite  overwriteTest("LEF_overwrite");    LefTestTechAttach attachTest("LEF_techAttach");    LefTestTechOnly   techOnlyTest("LEF_techOnly");    LefTestCellsOnly  cellsOnlyTest("LEF_cellsOnly");    LefTestLayerMap   layerMapTest("LEF_layerMap");    // DEF ALL syntax tests    DefTest53    DEF53Constructs01Test("DEF53_01");    DefTest54    DEF54Constructs01Test("DEF54_01");    DefTest55    DEF55Constructs02Test("DEF55_01");    DefTest56    DEF56Constructs02Test("DEF56_01");    DefTestError DEF_errorTest("DEF_error");    // DEF Options tests    DefTest	     hierarchyTest("DEF_hierarchy");    DefTestNoModHier noHierarchyTest("DEF_noHierarchy");    DefTestUpdate    DEF_updateTest("DEF_update");    DefTestOptimize  optimizeTest("DEF_optimizeRoutes");    // Create test object and run the tests.    oaLefDefTestApp app("Exercise the OpenAccess LEFDEF Unit Test Suite");    try {	app.main(argc, argv);    }    catch (oaException	&excp) {	app.error(excp.getMsg());    }    return app.getExitStatus();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -