oaCellView.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaCellView.h
00004 //
00005 // This file contains the definition for the oaCellView class. This implements
00006 // an OpenAccess library cellView file object.
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(oaCellView_P)
00027 #define oaCellView_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaCell.h"
00035 #include "oaView.h"
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaCellView
00048 // *****************************************************************************
00049 class OA_DM_DLL_API oaCellView : public oaDMContainer {
00050 public:
00051     static oaCellView       *find(const oaCell  *cell,
00052                                   const oaView  *view);
00053     static oaCellView       *find(const oaLib           *lib,
00054                                   const oaScalarName    &cellName,
00055                                   const oaScalarName    &viewName);
00056 
00057     static oaCellView       *get(const oaCell   *cell,
00058                                  const oaView   *view);
00059     static oaCellView       *get(const oaLib        *lib,
00060                                  const oaScalarName &cellName,
00061                                  const oaScalarName &viewName,
00062                                  const oaViewType   *viewType);
00063 
00064     void                    destroy();
00065 
00066     oaCell                  *getCell() const;
00067     oaView                  *getView() const;
00068 
00069     oaDMFile                *getPrimary() const;
00070 
00071     void                    setView(const oaView *view);
00072     void                    setView(const oaView    *view,
00073                                     oaBoolean       mustExist);
00074 
00075     enum {dtIndex = oacCellViewDataType};
00076 };
00077 
00078 
00079 
00080 // *****************************************************************************
00081 // Traits
00082 // *****************************************************************************
00083 template<>
00084 class oaTraits<oaCellView> {
00085 public:
00086     typedef oaDMContainer           parentType;
00087     typedef oaCellViewModTypeEnum   modTypeType;
00088     enum {dbType = oacLibDBType};
00089     enum {domain = oacNoDomain};
00090     enum {isMultiDomain = false};
00091     enum {dtIndex = oacCellViewDataType};
00092     enum {isConcrete = true};
00093     enum {objectTypeEnumVal = oacCellViewType};
00094     enum {dataTypeEnumVal = oacCellViewDataType};
00095 };
00096 
00097 
00098 
00099 END_OA_NAMESPACE
00100 
00101 #endif

Return to top of page