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