📄 oalefinoptions.cpp
字号:
// *****************************************************************************// *****************************************************************************// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -