oaAssignmentDef.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaAssignmentDef.h
00004 //
00005 // This file contains the definition of the oaAssignmentDef class.
00006 //
00007 // The oaAssignmentDef class is an object that holds the name of an
00008 // oaAssignment (either an oaAssignValue or oaAssignAssignment) and a default
00009 // net name value. An oaAssignmentDef is used with the oaConnectDef objects to
00010 // specify how nets may be connected by name in a design hierarchy. It is also
00011 // used with oaAssignAssignment objects to override assignment specifications
00012 // made in oaConnectDef objects.
00013 //
00014 // *****************************************************************************
00015 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00016 // Integration Initiative, this material may not be copied, modified,
00017 // re-published, uploaded, executed, or distributed in any way, in any medium,
00018 // in whole or in part, without prior written permission from Cadence.
00019 //
00020 //                Copyright 2003-2005 Cadence Design Systems, Inc.
00021 //                           All Rights Reserved.
00022 //
00023 //  $Author: icftcm $
00024 //  $Revision: #1 $
00025 //  $Date: 2010/08/09 $
00026 //  $State: Exp $
00027 // *****************************************************************************
00028 // *****************************************************************************
00029 
00030 
00031 
00032 #if !defined(oaAssignmentDef_P)
00033 #define oaAssignmentDef_P
00034 
00035 
00036 
00037 // *****************************************************************************
00038 // Nested includes
00039 // *****************************************************************************
00040 #include "oaName.h"
00041 #include "oaDesignDBTypes.h"
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // Declare and define types in the OpenAccess namespace.
00047 // *****************************************************************************
00048 BEGIN_OA_NAMESPACE
00049 
00050 
00051 
00052 // *****************************************************************************
00053 // oaAssignmentDef
00054 // *****************************************************************************
00055 class OA_DESIGN_DLL_API oaAssignmentDef {
00056 public:
00057                             oaAssignmentDef();
00058                             oaAssignmentDef(const oaString      &assignmentNameIn,
00059                                             const oaScalarName  &defaultNameIn);
00060                             oaAssignmentDef(const oaString          &assignmentNameIn,
00061                                             const oaVectorBitName   &defaultNameIn);
00062 
00063     const oaString          &assignmentName() const;
00064     const oaSimpleName      &defaultName() const;
00065 
00066     void                    setAssignmentName(const oaString &assignmentNameIn);
00067     void                    setDefaultName(const oaScalarName &defaultNameIn);
00068     void                    setDefaultName(const oaVectorBitName &defaultNameIn);
00069 
00070 private:
00071     oaString                assignmentNameVal;
00072     oaSimpleName            defaultNameVal;
00073 };
00074 
00075 
00076 
00077 END_OA_NAMESPACE
00078 
00079 #endif

Return to top of page