oaTechLayerHeader.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaTechLayerHeader.h
00004 //
00005 // This file contains the definition for the oaTechLayerHeader class. The
00006 // oaTechLayerHeader is responsible for managing the binding to a specific
00007 // layer, whether that layer exists in the same or in a referenced technology
00008 // database.
00009 //
00010 // *****************************************************************************
00011 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00012 // Integration Initiative, this material may not be copied, modified,
00013 // re-published, uploaded, executed, or distributed in any way, in any medium,
00014 // in whole or in part, without prior written permission from Cadence.
00015 //
00016 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00017 //                           All Rights Reserved.
00018 //
00019 //  $Author: icftcm $
00020 //  $Revision: #1 $
00021 //  $Date: 2010/08/09 $
00022 //  $State: Exp $
00023 // *****************************************************************************
00024 // *****************************************************************************
00025 
00026 
00027 
00028 #if !defined(oaTechLayerHeader_P)
00029 #define oaTechLayerHeader_P
00030 
00031 
00032 
00033 // *****************************************************************************
00034 // Nested includes
00035 // *****************************************************************************
00036 #include "oaLayer.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaTechLayerHeader
00049 // *****************************************************************************
00050 class OA_TECH_DLL_API oaTechLayerHeader : public oaTechObject {
00051 public:
00052     static oaTechLayerHeader    *find(const oaTech  *tech,
00053                                       oaLayerNum    layerNum);
00054 
00055     oaLayerNum                  getLayerNum() const;
00056     oaLayer                     *getLayer() const;
00057 
00058     oaBoolean                   isBound() const;
00059 
00060     enum {dtIndex = oacTechLayerHeaderDataType};
00061 };
00062 
00063 
00064 
00065 // *****************************************************************************
00066 // oaTech traits
00067 // *****************************************************************************
00068 template<>
00069 class oaTraits<oaTechLayerHeader> {
00070 public:
00071     typedef oaTechObject                    parentType;
00072     typedef oaTechLayerHeaderModTypeEnum    modTypeType;
00073     enum {dbType = oacTechDBType};
00074     enum {domain = oacNoDomain};
00075     enum {isMultiDomain = false};
00076     enum {dtIndex = oacTechLayerHeaderDataType};
00077     enum {isConcrete = true};
00078     enum {objectTypeEnumVal = oacTechLayerHeaderType};
00079     enum {dataTypeEnumVal = oacTechLayerHeaderDataType};
00080 };
00081 
00082 
00083 
00084 END_OA_NAMESPACE
00085 
00086 #endif
00087 

Return to top of page