oaTechViaDefHeader.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaTechViaDefHeader.h
00004 //
00005 // This file contains the definition for the oaTechViaDefHeader class. The
00006 // oaTechViaDefHeader is responsible for managing the binding to a specific
00007 // viaDef, whether that viaDef 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(oaTechViaDefHeader_P)
00029 #define oaTechViaDefHeader_P
00030 
00031 
00032 
00033 // *****************************************************************************
00034 // Nested includes
00035 // *****************************************************************************
00036 #include "oaViaDef.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaTechViaDefHeader
00049 // *****************************************************************************
00050 class OA_TECH_DLL_API oaTechViaDefHeader : public oaTechObject {
00051 public:
00052     static oaTechViaDefHeader   *find(const oaTech      *tech,
00053                                       const oaString    &viaDefName);
00054 
00055     void                        getViaDefName(oaString &name) const;
00056     oaViaDef                    *getViaDef() const;
00057 
00058     oaBoolean                   isBound() const;
00059 
00060     enum {dtIndex = oacTechViaDefHeaderDataType};
00061 };
00062 
00063 
00064 
00065 // *****************************************************************************
00066 // oaTech traits
00067 // *****************************************************************************
00068 template<>
00069 class oaTraits<oaTechViaDefHeader> {
00070 public:
00071     typedef oaTechObject                    parentType;
00072     typedef oaTechViaDefHeaderModTypeEnum   modTypeType;
00073     enum {dbType = oacTechDBType};
00074     enum {domain = oacNoDomain};
00075     enum {isMultiDomain = false};
00076     enum {dtIndex = oacTechViaDefHeaderDataType};
00077     enum {isConcrete = true};
00078     enum {objectTypeEnumVal = oacTechViaDefHeaderType};
00079     enum {dataTypeEnumVal = oacTechViaDefHeaderDataType};
00080 };
00081 
00082 
00083 
00084 END_OA_NAMESPACE
00085 
00086 #endif
00087 

Return to top of page