00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaViaSpec.h 00004 // 00005 // This file contains the definition for the oaViaSpec and the related 00006 // collection and iterator classes. The oaViaSpec class is used to store an 00007 // array of viaDefs. 00008 // ***************************************************************************** 00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00010 // Integration Initiative, this material may not be copied, modified, 00011 // re-published, uploaded, executed, or distributed in any way, in any medium, 00012 // in whole or in part, without prior written permission from Cadence. 00013 // 00014 // Copyright 2002-2005 Cadence Design Systems, Inc. 00015 // All Rights Reserved. 00016 // 00017 // $Author: icftcm $ 00018 // $Revision: #1 $ 00019 // $Date: 2010/08/09 $ 00020 // $State: Exp $ 00021 // ***************************************************************************** 00022 // ***************************************************************************** 00023 00024 00025 00026 #if !defined(oaViaSpec_P) 00027 #define oaViaSpec_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaTechValue.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // oaViaSpec 00047 // ***************************************************************************** 00048 class OA_TECH_DLL_API oaViaSpec : public oaTechObject { 00049 public: 00050 static oaViaSpec *create(const oaPhysicalLayer *layer1, 00051 const oaPhysicalLayer *layer2, 00052 oaViaDefArrayValue *defaultValue); 00053 static oaViaSpec *create(const oaPhysicalLayer *layer1, 00054 const oaPhysicalLayer *layer2, 00055 oaViaDef2DTblValue *value); 00056 static oaViaSpec *create(const oaPhysicalLayer *layer1, 00057 const oaPhysicalLayer *layer2, 00058 oaViaDefArrayValue *defaultValue, 00059 oaViaDef2DTblValue *value); 00060 static oaViaSpec *create(oaTech *tech, 00061 const oaPhysicalLayer *layer1, 00062 const oaPhysicalLayer *layer2, 00063 oaViaDefArrayValue *defaultValue); 00064 static oaViaSpec *create(oaTech *tech, 00065 const oaPhysicalLayer *layer1, 00066 const oaPhysicalLayer *layer2, 00067 oaViaDef2DTblValue *value); 00068 static oaViaSpec *create(oaTech *tech, 00069 const oaPhysicalLayer *layer1, 00070 const oaPhysicalLayer *layer2, 00071 oaViaDefArrayValue *defaultValue, 00072 oaViaDef2DTblValue *value); 00073 00074 static oaViaSpec *find(const oaPhysicalLayer *layer1, 00075 const oaPhysicalLayer *layer2); 00076 static oaViaSpec *find(oaTech *tech, 00077 oaLayerNum layer1Num, 00078 oaLayerNum layer2Num, 00079 oaBoolean local = false); 00080 00081 void destroy(); 00082 00083 oaPhysicalLayer *getLayer1() const; 00084 oaPhysicalLayer *getLayer2() const; 00085 oaLayerNum getLayer1Num() const; 00086 oaLayerNum getLayer2Num() const; 00087 oaViaDef2DTblValue *getValue() const; 00088 oaViaDefArrayValue *getDefaultValue() const; 00089 00090 void setValue(oaViaDef2DTblValue *value); 00091 void setDefaultValue(oaViaDefArrayValue *value); 00092 00093 enum {dtIndex = oacViaSpecDataType}; 00094 }; 00095 00096 00097 00098 // ***************************************************************************** 00099 // oaTech traits 00100 // ***************************************************************************** 00101 template<> 00102 class oaTraits<oaViaSpec> { 00103 public: 00104 typedef oaTechObject parentType; 00105 typedef oaViaSpecModTypeEnum modTypeType; 00106 enum {dbType = oacTechDBType}; 00107 enum {domain = oacNoDomain}; 00108 enum {isMultiDomain = false}; 00109 enum {dtIndex = oacViaSpecDataType}; 00110 enum {isConcrete = true}; 00111 enum {objectTypeEnumVal = oacViaSpecType}; 00112 enum {dataTypeEnumVal = oacViaSpecDataType}; 00113 }; 00114 00115 00116 00117 END_OA_NAMESPACE 00118 00119 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.