00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaSimpleConstraint.h 00004 // 00005 // This file contains the definitions for the oaSimpleConstraint class. 00006 // 00007 // ***************************************************************************** 00008 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00009 // Integration Initiative, this material may not be copied, modified, 00010 // re-published, uploaded, executed, or distributed in any way, in any medium, 00011 // in whole or in part, without prior written permission from Cadence. 00012 // 00013 // Copyright 2002-2005 Cadence Design Systems, Inc. 00014 // All Rights Reserved. 00015 // 00016 // $Author: icftcm $ 00017 // $Revision: #1 $ 00018 // $Date: 2010/08/09 $ 00019 // $State: Exp $ 00020 // ***************************************************************************** 00021 // ***************************************************************************** 00022 00023 00024 00025 #if !defined(oaSimpleConstraint_P) 00026 #define oaSimpleConstraint_P 00027 00028 00029 00030 // ***************************************************************************** 00031 // Nested includes 00032 // ***************************************************************************** 00033 #include "oaCollection.h" 00034 #include "oaConstraint.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // Forward Class Declarations 00047 // ***************************************************************************** 00048 class oaSimpleConstraintDef; 00049 00050 00051 00052 // ***************************************************************************** 00053 // oaSimpleConstraint 00054 // ***************************************************************************** 00055 class OA_BASE_DLL_API oaSimpleConstraint : public oaConstraint { 00056 public: 00057 static oaSimpleConstraint *create(const oaSimpleConstraintDef *def, 00058 oaValue *value, 00059 oaBoolean isHard = true, 00060 const oaConstraintParamArray *params = NULL); 00061 static oaSimpleConstraint *create(const oaSimpleConstraintDef *def, 00062 const oaString &name, 00063 oaValue *value, 00064 oaBoolean isHard = true, 00065 const oaConstraintParamArray *params = NULL); 00066 00067 static oaSimpleConstraint *find(const oaConstraintGroup *group, 00068 const oaSimpleConstraintDef *def, 00069 oaBoolean hardOnly = false); 00070 00071 static oaCollection<oaSimpleConstraint, oaConstraintGroup> getConstraints(const oaConstraintGroup *group, 00072 const oaSimpleConstraintDef *def); 00073 00074 }; 00075 00076 00077 00078 // ***************************************************************************** 00079 // Objects derived from oaConstraint 00080 // ***************************************************************************** 00081 template<> 00082 class oaTraits<oaSimpleConstraint> { 00083 public: 00084 typedef oaConstraintModTypeEnum modTypeType; 00085 typedef oaConstraint parentType; 00086 enum {dtIndex = oacBaseConstraintDataType}; 00087 enum {dataTypeEnumVal = oacBaseConstraintDataType}; 00088 enum {domain = oacNoDomain}; 00089 enum {isMultiDomain = false}; 00090 enum {dbType = oacBaseDBType}; 00091 enum {isConcrete = true}; 00092 enum {objectTypeEnumVal = oacSimpleConstraintType}; 00093 }; 00094 00095 00096 00097 END_OA_NAMESPACE 00098 00099 #endif 00100
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.