oaProp.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaProp.h
00004 //
00005 // This file contains the definitions for the oaProp class. The oaProp class is
00006 // an abstract base for all types of properties.
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(oaProp_P)
00027 #define oaProp_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaBaseModTypes.h"
00035 #include "oaObject.h"
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaProp
00048 // *****************************************************************************
00049 class OA_BASE_DLL_API oaProp : public oaObject {
00050 public:
00051     static oaProp           *find(const oaObject    *object,
00052                                   const oaString    &name,
00053                                   oaBoolean         crossDomain = false);
00054 
00055     void                    destroy();
00056 
00057     oaObject                *getOwner() const;
00058     void                    getName(oaString &name) const;
00059     void                    getValue(oaString &value) const;
00060 
00061     void                    setName(const oaString &name);
00062 
00063     oaProp                  *moveTo(oaObject *object);
00064     oaProp                  *copyTo(oaObject *object) const;
00065 
00066     enum {dtIndex = oacBasePropDataType};
00067     enum {domain = oacNoDomain};
00068 };
00069 
00070 
00071 
00072 // *****************************************************************************
00073 // Traits
00074 // *****************************************************************************
00075 template<>
00076 class oaTraits<oaProp> {
00077 public:
00078     typedef oaObject            parentType;
00079     typedef oaPropModTypeEnum   modTypeType;
00080     enum {domain = oacNoDomain};
00081     enum {isMultiDomain = false};
00082     enum {isConcrete = false};
00083     enum {dbType = oacBaseDBType};
00084     enum {dtIndex = oacBasePropDataType};
00085     enum {dataTypeEnumVal = oacBasePropDataType};
00086     enum {abstractTypeEnumVal = oacPropType};
00087 };
00088 
00089 
00090 
00091 END_OA_NAMESPACE
00092 
00093 #endif

Return to top of page