oagTimerTermObserver.h

Go to the documentation of this file.
00001 /* (c) Copyright 2004-2005, Cadence Design Systems, Inc.  All rights reserved. 
00002 
00003 This file is part of the OA Gear distribution.  See the COPYING file in
00004 the top level OA Gear directory for copyright and licensing information. */
00005 
00006 /*
00007 Author: Zhong Xiu <zxiu@andrew.cmu.edu>
00008 
00009 ChangeLog:
00010 2004-09-15: ChangeLog started
00011 2005-08-05: Moved to separate file
00012 */
00013 
00014 #if !defined(oagTimerTermObserver_P)
00015 #define oagTimerTermObserver_P
00016 
00017 #include "oaDesignDB.h"
00018 
00019 namespace oagTimer {
00020 
00027 class TermObserver : public oa::oaObserver<oa::oaOccTerm>
00028 {
00029   public:
00035     TermObserver(oa::oaUInt4    priority,
00036                  oa::oaBoolean  enabled = true);
00037 
00042     void onPostCreate(oa::oaOccTerm *instTerm);
00043 
00049     void onPreModify(oa::oaOccTerm          *term,
00050                      oa::oaTermModTypeEnum  modType);
00051 
00057     void onPostModify(oa::oaOccTerm         *term,
00058                       oa::oaTermModTypeEnum modType);
00059 
00064     void onPreDestroy(oa::oaOccTerm *term);
00065 
00066   private:
00067     void invalidate(oa::oaOccTerm *term);
00068 };
00069 
00070 }
00071 
00072 #endif

Generated on Thu Aug 25 14:24:05 2011 by  doxygen 1.3.9.1