00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaOccInstHeader.h 00004 // 00005 // This file contains the definition for the oaOccInstHeader class. The 00006 // oaOccInstHeader class implements an object that contains the occurrnece 00007 // domain view about a particular design master and all of the instances that 00008 // use it. oaOccInstHeader objects are scoped within an owner occurrence. 00009 // 00010 // ***************************************************************************** 00011 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00012 // Integration Initiative, this material may not be copied, modified, 00013 // re-published, uploaded, executed, or distributed in any way, in any medium, 00014 // in whole or in part, without prior written permission from Cadence. 00015 // 00016 // Copyright 2003-2005 Cadence Design Systems, Inc. 00017 // All Rights Reserved. 00018 // 00019 // $Author: icftcm $ 00020 // $Revision: #1 $ 00021 // $Date: 2010/08/09 $ 00022 // $State: Exp $ 00023 // ***************************************************************************** 00024 // ***************************************************************************** 00025 00026 00027 00028 #if !defined(oaOccInstHeader_P) 00029 #define oaOccInstHeader_P 00030 00031 00032 00033 // ***************************************************************************** 00034 // Nested includes 00035 // ***************************************************************************** 00036 #include "oaInstHeader.h" 00037 #include "oaModInstHeader.h" 00038 #include "oaOccurrence.h" 00039 00040 00041 00042 // ***************************************************************************** 00043 // Declare and define types in the OpenAccess namespace. 00044 // ***************************************************************************** 00045 BEGIN_OA_NAMESPACE 00046 00047 00048 00049 // ***************************************************************************** 00050 // oaOccInstHeader 00051 // ***************************************************************************** 00052 class OA_DESIGN_DLL_API oaOccInstHeader : public oaOccObject { 00053 public: 00054 oaDesign *getMaster() const; 00055 00056 void getLibName(oaScalarName &libName) const; 00057 void getCellName(oaScalarName &cellName) const; 00058 void getViewName(oaScalarName &viewName) const; 00059 00060 void getLibName(const oaNameSpace &ns, 00061 oaString &libName) const; 00062 void getCellName(const oaNameSpace &ns, 00063 oaString &cellName) const; 00064 void getViewName(const oaNameSpace &ns, 00065 oaString &viewName) const; 00066 00067 void getParams(oaParamArray ¶ms) const; 00068 void getAllParams(oaParamArray ¶ms) const; 00069 oaOccInstHeader *getSuperHeader() const; 00070 00071 oaBoolean isBound() const; 00072 oaBoolean isSuperHeader() const; 00073 oaBoolean isSubHeader() const; 00074 00075 oaInstHeader *getInstHeader() const; 00076 oaModInstHeader *getModInstHeader() const; 00077 00078 oaCollection<oaOccDesignInst, oaOccInstHeader> getInsts(oaUInt4 filterFlags = oacInstIterNotImplicit, 00079 oaOccurrence *parentOcc = NULL) const; 00080 oaCollection<oaOccInstHeader, oaOccInstHeader> getSubHeaders() const; 00081 00082 enum {dtIndex = oacInstHeaderDataType}; 00083 }; 00084 00085 00086 00087 // ***************************************************************************** 00088 // Design Traits. 00089 // ***************************************************************************** 00090 template<> 00091 class oaTraits<oaOccInstHeader> { 00092 public: 00093 typedef oaOccObject parentType; 00094 typedef oaInstHeaderModTypeEnum modTypeType; 00095 enum {domain = oacOccDomain}; 00096 enum {isMultiDomain = true}; 00097 enum {dbType = oacDesignDBType}; 00098 enum {dtIndex = oacInstHeaderDataType}; 00099 enum {isConcrete = true}; 00100 enum {objectTypeEnumVal = oacOccInstHeaderType}; 00101 enum {dataTypeEnumVal = oacInstHeaderDataType}; 00102 }; 00103 00104 00105 00106 END_OA_NAMESPACE 00107 00108 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.