00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaLPPHeader.h 00004 // 00005 // This file contains the definition for the oaLPPHeader class and its public 00006 // supporting classes. The oaLPPHeader class implements an object that contains 00007 // information about a particular layer-purpose pair and the set of figures that 00008 // use it in a design database. The set of oaLPPHeaders in a design 00009 // represents the set of layer-purpose pairs currently in use. 00010 // 00011 // ***************************************************************************** 00012 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00013 // Integration Initiative, this material may not be copied, modified, 00014 // re-published, uploaded, executed, or distributed in any way, in any medium, 00015 // in whole or in part, without prior written permission from Cadence. 00016 // 00017 // Copyright 2002-2005 Cadence Design Systems, Inc. 00018 // All Rights Reserved. 00019 // 00020 // $Author: icftcm $ 00021 // $Revision: #1 $ 00022 // $Date: 2010/08/09 $ 00023 // $State: Exp $ 00024 // ***************************************************************************** 00025 // ***************************************************************************** 00026 00027 00028 00029 #if !defined(oaLPPHeader_P) 00030 #define oaLPPHeader_P 00031 00032 00033 00034 // ***************************************************************************** 00035 // Nested includes 00036 // ***************************************************************************** 00037 #include "oaPurpose.h" 00038 #include "oaBlock.h" 00039 00040 00041 00042 // ***************************************************************************** 00043 // Declare and define types in the OpenAccess namespace. 00044 // ***************************************************************************** 00045 BEGIN_OA_NAMESPACE 00046 00047 00048 00049 // ***************************************************************************** 00050 // oaLPPHeader 00051 // ***************************************************************************** 00052 class OA_DESIGN_DLL_API oaLPPHeader : public oaBlockObject { 00053 public: 00054 static oaLPPHeader *find(const oaBlock *block, 00055 oaLayerNum layerNum, 00056 oaPurposeNum purposeNum); 00057 00058 oaLayer *getLayer() const; 00059 oaPurpose *getPurpose() const; 00060 oaLayerHeader *getLayerHeader() const; 00061 oaLayerNum getLayerNum() const; 00062 oaPurposeNum getPurposeNum() const; 00063 void getShapeBBox(oaBox &bBox) const; 00064 00065 oaCollection<oaShape, oaLPPHeader> getShapes() const; 00066 00067 oaBoolean isBound() const; 00068 00069 enum {dtIndex = oacLPPHeaderDataType}; 00070 }; 00071 00072 00073 00074 // ***************************************************************************** 00075 // Design Traits. 00076 // ***************************************************************************** 00077 template<> 00078 class oaTraits<oaLPPHeader> { 00079 public: 00080 typedef oaBlockObject parentType; 00081 typedef oaLPPHeaderModTypeEnum modTypeType; 00082 enum {domain = oacBlockDomain}; 00083 enum {dbType = oacDesignDBType}; 00084 enum {isMultiDomain = false}; 00085 enum {dtIndex = oacLPPHeaderDataType}; 00086 enum {isConcrete = true}; 00087 enum {objectTypeEnumVal = oacLPPHeaderType}; 00088 enum {dataTypeEnumVal = oacLPPHeaderDataType}; 00089 }; 00090 00091 00092 00093 END_OA_NAMESPACE 00094 00095 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.