oaILockFactory.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaILockFactory.h
00004 //
00005 // This file contains the definition for base ILockFactory class. This defines 
00006 // the ILockFactory plug-in interface. The factory supports creating different
00007 // lock objects.
00008 //
00009 // *****************************************************************************
00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00011 // Integration Initiative, this material may not be copied, modified,
00012 // re-published, uploaded, executed, or distributed in any way, in any medium,
00013 // in whole or in part, without prior written permission from Cadence.
00014 //
00015 //                Copyright 2008-2009 Cadence Design Systems, Inc.
00016 //                           All Rights Reserved.
00017 //
00018 //  $Author: icftcm $
00019 //  $Revision: #1 $
00020 //  $Date: 2010/08/09 $
00021 //  $State:  $
00022 // *****************************************************************************
00023 // *****************************************************************************
00024 
00025 
00026 
00027 #if !defined(oaILockFactory_P)
00028 #define oaILockFactory_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaBaseTypes.h"
00036 #include "oaCommonTypes.h"
00037 #include "oaCommonIBase.h"
00038 
00039 
00040 
00041 // *****************************************************************************
00042 // Declare and define types in the OpenAccess namespace.
00043 // *****************************************************************************
00044 BEGIN_OA_NAMESPACE
00045 
00046 
00047 
00048 // *****************************************************************************
00049 // ILockFactory<>
00050 // *****************************************************************************
00051 template <class LockType>
00052 class ILockFactory : public oaCommon::IBase {
00053 public:
00054     virtual LockType            *create() = 0;
00055     virtual void                destroy(LockType *lock) = 0;
00056 
00057     virtual oa::oaUInt8         calcVMSize() const = 0;
00058 
00059     static const oaCommon::Guid &getId();
00060 };
00061 
00062 
00063 
00064 
00065 END_OA_NAMESPACE
00066 
00067 #endif
00068 
00069 
00070 
00071 
00072 

Return to top of page