00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaOccDesignInst.h 00004 // 00005 // This file contains the definition for the oaOccDesignInst class. This class 00006 // is a base for instances of design masters. 00007 // 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 2003-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(oaOccDesignInst_P) 00027 #define oaOccDesignInst_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaOccInst.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // oaOccDesignInst 00047 // ***************************************************************************** 00048 class OA_DESIGN_DLL_API oaOccDesignInst : public oaOccInst { 00049 public: 00050 oaDesign *getMaster() const; 00051 oaOccInstHeader *getHeader() const; 00052 00053 void getLibName(oaScalarName &libName) const; 00054 void getCellName(oaScalarName &cellName) const; 00055 void getViewName(oaScalarName &viewName) const; 00056 00057 void getLibName(const oaNameSpace &ns, 00058 oaString &libName) const; 00059 void getCellName(const oaNameSpace &ns, 00060 oaString &cellName) const; 00061 void getViewName(const oaNameSpace &ns, 00062 oaString &viewName) const; 00063 00064 void getParams(oaParamArray ¶ms) const; 00065 oaBoolean findParam(const oaString &name, 00066 oaParam ¶m); 00067 }; 00068 00069 00070 00071 // ***************************************************************************** 00072 // oaOccBitInst 00073 // ***************************************************************************** 00074 class OA_DESIGN_DLL_API oaOccBitInst : public oaOccDesignInst { 00075 public: 00076 }; 00077 00078 00079 00080 // ***************************************************************************** 00081 // Design Traits. 00082 // ***************************************************************************** 00083 template<> 00084 class oaTraits<oaOccDesignInst> { 00085 public: 00086 typedef oaInstModTypeEnum modTypeType; 00087 typedef oaOccInst parentType; 00088 enum {dtIndex = oacInstDataType}; 00089 enum {dataTypeEnumVal = oacInstDataType}; 00090 enum {domain = oacOccDomain}; 00091 enum {isMultiDomain = true}; 00092 enum {dbType = oacDesignDBType}; 00093 enum {isConcrete = false}; 00094 enum {abstractTypeEnumVal = oacOccDesignInstType}; 00095 }; 00096 00097 template<> 00098 class oaTraits<oaOccBitInst> { 00099 public: 00100 typedef oaInstModTypeEnum modTypeType; 00101 typedef oaOccDesignInst parentType; 00102 enum {dtIndex = oacInstDataType}; 00103 enum {dataTypeEnumVal = oacInstDataType}; 00104 enum {domain = oacOccDomain}; 00105 enum {isMultiDomain = true}; 00106 enum {dbType = oacDesignDBType}; 00107 enum {isConcrete = false}; 00108 enum {abstractTypeEnumVal = oacOccBitInstType}; 00109 }; 00110 00111 00112 00113 END_OA_NAMESPACE 00114 00115 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.