📄 oalefdefprop.cpp
字号:
// *****************************************************************************// *****************************************************************************// LefDefProp.cpp//// This file contains the member functions specific to the LefDefProp and// its derived classes. It also contains the static initialization for the names// of the LefDefObjectType 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.8 $// $Date: 2005/01/04 03:26:19 $// $State: Exp $// *****************************************************************************// *****************************************************************************#include "oaLefDef.h"BEGIN_LEFDEF_NAMESPACE// *****************************************************************************// Initialize Static Members// *****************************************************************************const oaString LefDefObjectType::names[] = { "LIBRARY", "DESIGN", "MACRO", "VIA", "VIARULE", "NONDEFAULTRULE", "COMPONENT", "COMPONENTPIN", "PIN", "NET", "SPECIALNET", "ROW", "TRACK", "REGION", "GROUP", "LAYER"};// *****************************************************************************// LefDefProp::LefDefProp()// LefDefProp::~LefDefProp()//// This is the default constructor for the LefDefProp class.// *****************************************************************************LefDefProp::LefDefProp(const oaString &nameIn, LefDefObjectType objectTypeIn): next(NULL), name(nameIn), objectType(objectTypeIn), type(cLefDefIntPropType){}LefDefProp::~LefDefProp(){}// *****************************************************************************// LefDefIntProp::LefDefIntProp()//// This is the default constructor for the LefDefIntProp class.// *****************************************************************************LefDefIntProp::LefDefIntProp(const oaString &nameIn, LefDefObjectType objectTypeIn, oaInt4 valueIn): LefDefProp(nameIn, objectTypeIn), value(valueIn){}// *****************************************************************************// LefDefIntRangeProp::LefDefIntRangeProp()//// This is the default constructor for the LefDefIntRangeProp class.// *****************************************************************************LefDefIntRangeProp::LefDefIntRangeProp(const oaString &nameIn, LefDefObjectType objectTypeIn, oaInt4 lowerIn, oaInt4 upperIn, oaInt4 valueIn): LefDefProp(nameIn, objectTypeIn), lower(lowerIn), upper(upperIn), value(valueIn){ type = cLefDefIntRangePropType;}// *****************************************************************************// LefDefRealProp::LefDefRealProp()//// This is the default constructor for the LefDefRealProp class.// *****************************************************************************LefDefRealProp::LefDefRealProp(const oaString &nameIn, LefDefObjectType objectTypeIn, oaDouble valueIn): LefDefProp(nameIn, objectTypeIn), value(valueIn){ type = cLefDefRealPropType;}// *****************************************************************************// LefDefRealRangeProp::LefDefRealRangeProp()//// This is the default constructor for the LefDefRealRangeProp class.// *****************************************************************************LefDefRealRangeProp::LefDefRealRangeProp(const oaString &nameIn, LefDefObjectType objectTypeIn, oaDouble lowerIn, oaDouble upperIn, oaDouble valueIn): LefDefProp(nameIn, objectTypeIn), lower(lowerIn), upper(upperIn), value(valueIn){ type = cLefDefRealRangePropType;}// *****************************************************************************// LefDefStringProp::LefDefStringProp()//// This is the default constructor for the LefDefStringProp class.// *****************************************************************************LefDefStringProp::LefDefStringProp(const oaString &nameIn, LefDefObjectType objectTypeIn, const oaString &valueIn): LefDefProp(nameIn, objectTypeIn), value(valueIn){ type = cLefDefStringPropType;}END_LEFDEF_NAMESPACE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -