oalefinoptions.cpp
来自「openaccess读def,lef文件所用的源代码」· C++ 代码 · 共 96 行
CPP
96 行
// *****************************************************************************// *****************************************************************************// LefInOptions.cpp//// This file contains the member functions for the LefInOptions class.//// *****************************************************************************// 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: mhahn $// $Revision: 1.25 $// $Date: 2005/03/30 00:00:37 $// $State: Exp $// *****************************************************************************// *****************************************************************************#include "oaLefDef.h"BEGIN_LEFDEF_NAMESPACE// *****************************************************************************// LefInOptions::LefInOptions()// LefInOptions::~LefInOptions()//// This is the constructor for the LefInOptions class,// the default option values are set here.// *****************************************************************************LefInOptions::LefInOptions(): commentChar('#'), overwrite(false), useDefaultStdVias(false){ oaNativeNS ns; viewName.init(ns, cLefViewName); layoutName.init(ns, cLefLayoutName);}LefInOptions::~LefInOptions(){}// *****************************************************************************// LefInOptions::checkArgs()//// Check that all necessary options are valid// *****************************************************************************voidLefInOptions::checkArgs(){ if (libName.isEmpty()) { throw LefDefError(cLibNotSpecified); }}// *****************************************************************************// LefInOptions::getLayerMapName()//// Check that all nessecary options are valid// *****************************************************************************oaBooleanLefInOptions::getLayerMapName(oaUInt4 layerNum, oaString &layerName){ oaUtil::HashTableIter<oaString, oaUInt4> iter(&layerMap); oaUInt4 l; while (iter.getNext(layerName, l)) { if (l == layerNum) { return true; } } return false;}END_LEFDEF_NAMESPACE
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?