oaCommonInterfaceAccess.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // #include "oaCommonInterfaceAccess.inl"
00004 //
00005 // This file contains the declaration of a templated class that is used for
00006 // gaining access to an underlying interface that an OA class contains.
00007 //
00008 //  InterfaceAccess
00009 //      This class should be specialized to grant access to an IBase interface
00010 //      associated with a class.
00011 // 
00012 // *****************************************************************************
00013 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00014 // Integration Initiative, this material may not be copied, modified,
00015 // re-published, uploaded, executed, or distributed in any way, in any medium,
00016 // in whole or in part, without prior written permission from Cadence.
00017 //
00018 //                Copyright 2004-2005 Cadence Design Systems, Inc.
00019 //                           All Rights Reserved.
00020 //
00021 //  $Author: icftcm $
00022 //  $Revision: #1 $
00023 //  $Date: 2010/08/09 $
00024 //  $State: Exp $
00025 // *****************************************************************************
00026 
00027 
00028 
00029 #if !defined(oaCommonInterfaceAccess_P)
00030 #define oaCommonInterfaceAccess_P
00031 
00032 
00033 
00034 // *****************************************************************************
00035 // Nested includes
00036 // *****************************************************************************
00037 #include "oaCommonIBase.h"
00038 
00039 
00040 
00041 // *****************************************************************************
00042 // Declare and define types in the oaCommon namespace
00043 // *****************************************************************************
00044 BEGIN_OA_COMMON_NAMESPACE
00045 
00046 
00047 
00048 // *****************************************************************************
00049 // Forward declarations
00050 // *****************************************************************************
00051 class IBase;
00052 
00053 
00054 
00055 // ****************************************************************************
00056 // InterfaceAccess
00057 // ****************************************************************************
00058 template<class T>
00059 class InterfaceAccess {
00060 public:
00061     static void             getInterface(T      *object,
00062                                          IBase  *&base);
00063 };
00064 
00065 
00066 
00067 END_OA_COMMON_NAMESPACE
00068 
00069 #endif

Return to top of page