00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaModObject.h 00004 // 00005 // This file contains the definition for the oaModObject class. This is an 00006 // abstract class that is the base for all OpenAccess logical objects. 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(oaModObject_P) 00027 #define oaModObject_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaDesignObject.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // oaModObject 00047 // ***************************************************************************** 00048 class OA_DESIGN_DLL_API oaModObject : public oaDesignObject { 00049 public: 00050 oaBoolean isModNet() const; 00051 oaBoolean isModBitNet() const; 00052 oaBoolean isModTerm() const; 00053 oaBoolean isModBitTerm() const; 00054 oaBoolean isModInst() const; 00055 oaBoolean isModBitInst() const; 00056 oaBoolean isModAssignment() const; 00057 oaBoolean isModConnectDef() const; 00058 00059 oaModule *getModule() const; 00060 oaModule *getTopModule() const; 00061 00062 enum {domain = oacModDomain}; 00063 }; 00064 00065 00066 00067 // ***************************************************************************** 00068 // Design Traits. 00069 // ***************************************************************************** 00070 template<> 00071 class oaTraits<oaModObject> { 00072 public: 00073 typedef oaDesignObject parentType; 00074 enum {dbType = oacDesignDBType}; 00075 enum {isConcrete = false}; 00076 enum {domain = oacModDomain}; 00077 enum {isMultiDomain = true}; 00078 enum {abstractTypeEnumVal = oacModObjectType}; 00079 }; 00080 00081 00082 00083 END_OA_NAMESPACE 00084 00085 #endif 00086
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.