Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

Source.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, 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 
00019 
00020 #ifndef _DWFTK_SOURCE_H
00021 #define _DWFTK_SOURCE_H
00022 
00027 
00028 
00029 
00030 #include "dwf/Toolkit.h"
00031 #include "dwf/package/XML.h"
00032 #include "dwf/package/reader/PackageReader.h"
00033 #include "dwf/package/writer/PackageWriter.h"
00034 
00035 namespace DWFToolkit
00036 {
00037 
00045 class DWFSource : public DWFToolkitMemory
00046                 , public DWFXMLBuildable
00047 
00048 #ifndef DWFTK_READ_ONLY
00049                 , public DWFXMLSerializable
00050 #endif
00051 {
00052 
00053 public:
00054 
00060     _DWFTK_API
00061     DWFSource()
00062         throw();
00063 
00072     _DWFTK_API
00073     DWFSource( const DWFString& zHRef,
00074                const DWFString& zProvider,
00075                const DWFString& zObjectID )
00076         throw();
00077 
00084     _DWFTK_API
00085     DWFSource( const DWFSource& rSource )
00086         throw();
00087 
00094     _DWFTK_API
00095     DWFSource& operator=( const DWFSource& rSource )
00096         throw();
00097 
00103     _DWFTK_API
00104     virtual ~DWFSource()
00105         throw();
00106 
00113     _DWFTK_API
00114     const DWFString& href() const
00115         throw()
00116     {
00117         return _zHRef;
00118     }
00119 
00126     _DWFTK_API
00127     const DWFString& provider() const
00128         throw()
00129     {
00130         return _zProvider;
00131     }
00132 
00139     _DWFTK_API
00140     const DWFString& objectID() const
00141         throw()
00142     {
00143         return _zObjectID;
00144     }
00145 
00149     _DWFTK_API
00150     virtual void parseAttributeList( const char** ppAttributeList )
00151         throw( DWFException );
00152 
00153 #ifndef DWFTK_READ_ONLY
00154 
00158     _DWFTK_API
00159     void serializeXML( DWFXMLSerializer& rSerializer, unsigned int nFlags )
00160         throw( DWFException );
00161 
00162 #endif
00163 
00164 private:
00165 
00166     DWFString _zHRef;
00167     DWFString _zProvider;
00168     DWFString _zObjectID;
00169 };
00170 
00171 }
00172 
00173 #endif

Generated on Tue May 17 12:38:51 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1