oaAppProp.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaAppProp.h
00004 //
00005 // This file contains the definitions for the oaAppProp class. This class
00006 // implements a application-type property.
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-2008 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(oaAppProp_P)
00027 #define oaAppProp_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaProp.h"
00035 #include "oaByteArray.h"
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaAppProp
00048 // *****************************************************************************
00049 class OA_BASE_DLL_API oaAppProp : public oaProp {
00050 public:
00051 #if !defined(OA_DEPRECATED)
00052     static oaAppProp        *create(oaObject        *object,
00053                                     const oaString  &name,
00054                                     const oaString  &appType,
00055                                     const oaUInt4   size,
00056                                     const oaByte    *value);
00057 #endif
00058 
00059     oaUInt4                 getSize() const;
00060 #if !defined(OA_DEPRECATED)
00061     void                    getValue(oaByte *value) const;
00062 #endif
00063     void                    getAppType(oaString &appType) const;
00064 #if !defined(OA_DEPRECATED)
00065     void                    setAppType(const oaString &appType);
00066     void                    setValue(oaUInt4        size,
00067                                      const oaByte   *value);
00068 #endif
00069 
00070     static oaAppProp        *create(oaObject            *object,
00071                                     const oaString      &name,
00072                                     const oaString      &appType,
00073                                     const oaByteArray   &valueArray);
00074 
00075     void                    getValue(oaByteArray &valueArray) const;
00076     void                    setValue(const oaByteArray &valueArray);
00077 };
00078 
00079 
00080 
00081 // *****************************************************************************
00082 // Objects derived from oaProp
00083 // *****************************************************************************
00084 template<>
00085 class oaTraits<oaAppProp> : public oaBaseTraits<oaAppProp> {
00086 public:
00087     typedef oaPropModTypeEnum   modTypeType;
00088     typedef oaProp              parentType;
00089     enum {dtIndex = oacBasePropDataType};
00090     enum {dbType = oacBaseDBType};
00091     enum {dataTypeEnumVal = oacBasePropDataType};
00092     enum {domain = oacNoDomain};
00093     enum {isMultiDomain = false};
00094     enum {isConcrete = true};
00095     enum {objectTypeEnumVal = oacAppPropType};
00096 };
00097 
00098 
00099 
00100 END_OA_NAMESPACE
00101 
00102 #endif

Return to top of page