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