00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaConstraintParam.h 00004 // 00005 // This file contains the definitions for the following classes: 00006 // oaConstraintParam 00007 // oaConstraintParamArray 00008 // 00009 // ***************************************************************************** 00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00011 // Integration Initiative, this material may not be copied, modified, 00012 // re-published, uploaded, executed, or distributed in any way, in any medium, 00013 // in whole or in part, without prior written permission from Cadence. 00014 // 00015 // Copyright 2002-2005 Cadence Design Systems, Inc. 00016 // All Rights Reserved. 00017 // 00018 // $Author: icftcm $ 00019 // $Revision: #1 $ 00020 // $Date: 2010/08/09 $ 00021 // $State: Exp $ 00022 // ***************************************************************************** 00023 // ***************************************************************************** 00024 00025 00026 00027 #if !defined(oaConstraintParam_P) 00028 #define oaConstraintParam_P 00029 00030 00031 00032 // ***************************************************************************** 00033 // Nested includes 00034 // ***************************************************************************** 00035 #include "oaValue.h" 00036 #include "oaConstraintParamDef.h" 00037 00038 00039 00040 // ***************************************************************************** 00041 // Declare and define types in the OpenAccess namespace. 00042 // ***************************************************************************** 00043 BEGIN_OA_NAMESPACE 00044 00045 00046 00047 // ***************************************************************************** 00048 // Forward Class Declarations 00049 // ***************************************************************************** 00050 class oaConstraintParamDef; 00051 class oaValue; 00052 00053 00054 00055 // ***************************************************************************** 00056 // oaConstraintParam 00057 // ***************************************************************************** 00058 class OA_BASE_DLL_API oaConstraintParam : public oaObject { 00059 public: 00060 static oaConstraintParam *create(const oaConstraintParamDef *def, 00061 oaValue *value); 00062 00063 oaValue *getValue() const; 00064 oaConstraintParamDef *getDef() const; 00065 oaBoolean isOwned() const; 00066 00067 void setValue(oaValue *value); 00068 void destroy(); 00069 00070 oaConstraintParam *copy() const; 00071 oaConstraintParam *copyTo(oaObject *database) const; 00072 00073 enum {dtIndex = oacBaseConstraintParamDataType}; 00074 }; 00075 00076 00077 00078 // ***************************************************************************** 00079 // oaConstraintParamArray 00080 // ***************************************************************************** 00081 class OA_BASE_DLL_API oaConstraintParamArray : public oaArray<oaConstraintParam*> { 00082 public: 00083 oaConstraintParamArray(oaUInt4 sizeIn = 0); 00084 00085 oaConstraintParam *findParam(const oaConstraintParamDef *def) const; 00086 }; 00087 00088 00089 00090 // ***************************************************************************** 00091 // Traits 00092 // ***************************************************************************** 00093 template<> 00094 class oaTraits<oaConstraintParam> { 00095 public: 00096 typedef oaObject parentType; 00097 typedef oaConstraintParamModTypeEnum modTypeType; 00098 enum {domain = oacNoDomain}; 00099 enum {isMultiDomain = false}; 00100 enum {dbType = oacBaseDBType}; 00101 enum {dtIndex = oacBaseConstraintParamDataType}; 00102 enum {isConcrete = true}; 00103 enum {objectTypeEnumVal = oacConstraintParamType}; 00104 enum {dataTypeEnumVal = oacBaseConstraintParamDataType}; 00105 }; 00106 00107 00108 00109 END_OA_NAMESPACE 00110 00111 #endif 00112
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.