00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaDesignObject.h 00004 // 00005 // This file contains the definition for the oaDesignObject class. This abstract 00006 // class is the base for all OpenAccess design database 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(oaDesignObject_P) 00027 #define oaDesignObject_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaObject.h" 00035 #include "oaDesignDBTypes.h" 00036 00037 00038 00039 // ***************************************************************************** 00040 // Declare and define types in the OpenAccess namespace. 00041 // ***************************************************************************** 00042 BEGIN_OA_NAMESPACE 00043 00044 00045 00046 // ***************************************************************************** 00047 // oaDesignObject 00048 // ***************************************************************************** 00049 class OA_DESIGN_DLL_API oaDesignObject : public oaObject { 00050 public: 00051 oaBoolean isNode() const; 00052 oaBoolean isDevice() const; 00053 oaBoolean isStdDevice() const; 00054 oaBoolean isReducedModel() const; 00055 oaBoolean isBlockObject() const; 00056 oaBoolean isModObject() const; 00057 oaBoolean isOccObject() const; 00058 00059 oaDesign *getDesign() const; 00060 00061 enum {dbType = oacDesignDBType}; 00062 }; 00063 00064 00065 00066 // ***************************************************************************** 00067 // Design Traits. 00068 // ***************************************************************************** 00069 template<> 00070 class oaTraits<oaDesignObject> { 00071 public: 00072 typedef oaObject parentType; 00073 enum {domain = oacNoDomain}; 00074 enum {isMultiDomain = false}; 00075 enum {isConcrete = false}; 00076 enum {dbType = oacDesignDBType}; 00077 enum {abstractTypeEnumVal = oacDesignObjectType}; 00078 }; 00079 00080 00081 00082 END_OA_NAMESPACE 00083 00084 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.