PublishedContentElementListener.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 //  $Header: //DWF/Development/Components/Internal/DWF Toolkit/v7.6/develop/global/src/dwf/publisher/impl/PublishedContentElementListener.h#1 $
00019 //  $DateTime: 2008/02/20 08:38:28 $
00020 //  $Author: appacsviewers $
00021 //  $Change: 84992 $
00022 //  $Revision: #1 $
00023 //
00024 
00025 #ifndef _DWFTK_PUBLISHED_CONTENT_ELEMENT_LISTENER_H
00026 #define _DWFTK_PUBLISHED_CONTENT_ELEMENT_LISTENER_H
00027 
00032 
00033 #ifndef DWFTK_READ_ONLY
00034 
00035 #include "dwf/package/Instance.h"
00036 #include "dwf/publisher/impl/PublishedContentElement.h"
00037 
00038 namespace DWFToolkit
00039 {
00040 
00049 
00050 class DWFPublishedContentElementListener : public DWFPublishedContentElement::NotificationSink
00051                                            _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00052 {
00053 
00054 public:
00055 
00061     _DWFTK_API
00062     DWFPublishedContentElementListener()
00063         throw()
00064         : _oInstances()
00065     {;}
00066 
00072     _DWFTK_API
00073     virtual ~DWFPublishedContentElementListener()
00074         throw()
00075     {;}
00076 
00082     _DWFTK_API
00083     void clear()
00084         throw()
00085     {
00086         _oInstances.clear();
00087     }
00088 
00095     _DWFTK_API
00096     DWFInstance::tIterator* getInstances()
00097         throw()
00098     {
00099         return _oInstances.iterator();
00100     }
00101 
00102 public:
00103 
00109     _DWFTK_API
00110     void notifyInstanceCreated( DWFPublishedContentElement::tKey /*nKey*/, DWFInstance* pInstance )
00111         throw()
00112     {
00113         _oInstances.push_back( pInstance );
00114     }
00115 
00116 private:
00117 
00118     DWFInstance::tList      _oInstances;
00119 };
00120 
00121 }
00122 
00123 
00124 #endif
00125 
00126 #endif
00127 
00128 

Generated on Tue Jan 6 22:40:05 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5