oadefinoptions.cpp

来自「openaccess读def,lef文件所用的源代码」· C++ 代码 · 共 92 行

CPP
92
字号
// *****************************************************************************// *****************************************************************************// DefInOptions.cpp//// This file contains the member functions for the DefInOptions 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: nitters $//  $Revision: 1.25 $//  $Date: 2005/03/24 13:30:41 $//  $State: Exp $// *****************************************************************************// *****************************************************************************#include "oaLefDef.h"BEGIN_LEFDEF_NAMESPACE// *****************************************************************************// DefInOptions::DefInOptions()// DefInOptions::~DefInOptions()//// This is the constructor for the DefInOptions class.// *****************************************************************************DefInOptions::DefInOptions():   commentChar('#'),    overwrite(false),    useCustomVias(false),    useDefaultStdVias(false),    modHier(true),    routing(true){    oaNativeNS	ns;        viewName.init(ns, cDefViewName);}DefInOptions::~DefInOptions(){}// *****************************************************************************// DefInOptions::checkArgs()//// This function checks that all mandatory options are valid.// The mandatory options are fileName, libName, cellName and viewName.// *****************************************************************************voidDefInOptions::checkArgs(){    if (libName.isEmpty()) {	throw LefDefError(cLibNotSpecified);    }    oaNativeNS	ns;        if (masterLibNames.getNumElements() == 0) {	masterLibNames.append(libName);	if (!techLibName.isEmpty() && !ns.isEqual(techLibName, libName)) {	    masterLibNames.append(techLibName);	}    }    oaNativeNS	viewNS;        if (masterViewNames.getNumElements() == 0) {	oaScalarName	masterViewName(viewNS, cDefMasterViewName);	masterViewNames.append(masterViewName);    }}END_LEFDEF_NAMESPACE

⌨️ 快捷键说明

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