Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

W3DOpcodeHandler.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2005 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,
00008 //  AS TO THE CORRECTNESS OF THIS CODE OR ANY DERIVATIVE
00009 //  WORKS WHICH INCORPORATE IT.
00010 //
00011 //  AUTODESK PROVIDES THE CODE ON AN "AS-IS" BASIS
00012 //  AND EXPLICITLY DISCLAIMS ANY LIABILITY, INCLUDING
00013 //  CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00014 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00015 //
00016 //  Use, duplication, or disclosure by the U.S. Government is subject to
00017 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00018 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00019 //  Data and Computer Software), as applicable.
00020 //
00021 
00022 #ifndef _DWFW3DTK_OPCODE_HANDLER_H
00023 #define _DWFW3DTK_OPCODE_HANDLER_H
00024 
00029 
00030 #include "dwfcore/Exception.h"
00031 using namespace DWFCore;
00032 
00033 
00034 #include "dwf/Toolkit.h"
00035 
00036 
00037 //
00038 // fwd decl
00039 //
00040 class BBaseOpcodeHandler;
00041 
00048 class BBINFILETK_API BaseOpcodeHandlerObserver
00049 {
00050 
00051 public:
00052 
00056     virtual ~BaseOpcodeHandlerObserver()
00057         throw()
00058     {;}
00059 
00068     virtual void notify( BBaseOpcodeHandler* pHandler,
00069                          const void*         pTag = NULL )
00070         throw( DWFException ) = 0;
00071 
00072 protected:
00073 
00077     BaseOpcodeHandlerObserver()
00078         throw()
00079     {;}
00080 };
00081 
00082 
00088 class BBINFILETK_API W3DOpcodeHandler
00089 {
00090 
00091 public:
00092 
00096     virtual ~W3DOpcodeHandler()
00097     {;}
00098 
00104     void setObserver( BaseOpcodeHandlerObserver* pObserver )
00105         throw()
00106     {
00107         _pObserver = pObserver;
00108     }
00109 
00116     virtual void serialize( const void* pTag = NULL )
00117         throw( DWFException ) = 0;
00118 
00119 protected:
00120 
00126     W3DOpcodeHandler( BaseOpcodeHandlerObserver* pObserver = NULL )
00127         throw()
00128         : _pObserver( pObserver )
00129     {;}
00130 
00131 protected:
00132 
00133     BaseOpcodeHandlerObserver*  _pObserver;
00134 
00135 private:
00136 
00137     //
00138     // Not Implemented
00139     //
00140 
00141     W3DOpcodeHandler( const W3DOpcodeHandler& rCamera );
00142     W3DOpcodeHandler& operator=( const W3DOpcodeHandler& rCamera );
00143 };
00144 
00145 
00146 
00147 #endif
00148 

Generated on Tue May 17 12:06:00 2005 for Autodesk DWF 3D Toolkit by  doxygen 1.4.1