00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaDMArrribute.h 00004 // 00005 // This file contains the definitions for the oaDMAttr and oaDMAttrArray 00006 // classes. These classes hold the definition of attributes used by DM systems. 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 2002-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(oaDMAttribute_P) 00027 #define oaDMAttribute_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaArray.h" 00035 #include "oaDMTypes.h" 00036 00037 00038 00039 // ***************************************************************************** 00040 // Declare and define types in the OpenAccess namespace. 00041 // ***************************************************************************** 00042 BEGIN_OA_NAMESPACE 00043 00044 00045 00046 // ***************************************************************************** 00047 // oaDMAttribute 00048 // ***************************************************************************** 00049 class OA_DM_DLL_API oaDMAttr { 00050 public: 00051 oaDMAttr(); 00052 oaDMAttr(const oaString &nameIn, 00053 const oaString &value); 00054 00055 const oaString &getName() const; 00056 const oaString &getValue() const; 00057 00058 void setName(const oaString &nameIn); 00059 void setValue(const oaString &valueIn); 00060 00061 oaBoolean operator==(const oaDMAttr &other) const; 00062 oaBoolean operator!=(const oaDMAttr &other) const; 00063 00064 private: 00065 oaString name; 00066 oaString val; 00067 }; 00068 00069 00070 00071 // ***************************************************************************** 00072 // oaDMAttrArray 00073 // ***************************************************************************** 00074 class OA_DM_DLL_API oaDMAttrArray : public oaArray<oaDMAttr> { 00075 public: 00076 oaDMAttrArray(oaUInt4 sizeIn = 0); 00077 00078 private: 00079 virtual void copyElements(oaDMAttr *elementsTo, 00080 const oaDMAttr *elementsFrom, 00081 oaUInt4 num); 00082 virtual oaBoolean cmpElements(const oaDMAttr *elementsOther, 00083 oaUInt4 num) const; 00084 }; 00085 00086 00087 00088 END_OA_NAMESPACE 00089 00090 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.