Source.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 
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 DWFXMLBuildable
00046 
00047 #ifndef DWFTK_READ_ONLY
00048                 , public DWFXMLSerializable
00049 #endif
00050 
00051                 _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00052 {
00053 
00054 public:
00055 
00061     _DWFTK_API
00062     DWFSource()
00063         throw();
00064 
00073     _DWFTK_API
00074     DWFSource( const DWFString& zHRef,
00075                const DWFString& zProvider,
00076                const DWFString& zObjectID )
00077         throw();
00078 
00085     _DWFTK_API
00086     DWFSource( const DWFSource& rSource )
00087         throw();
00088 
00095     _DWFTK_API
00096     DWFSource& operator=( const DWFSource& rSource )
00097         throw();
00098 
00104     _DWFTK_API
00105     virtual ~DWFSource()
00106         throw();
00107 
00114     _DWFTK_API
00115     const DWFString& href() const
00116         throw()
00117     {
00118         return _zHRef;
00119     }
00120 
00127     _DWFTK_API
00128     const DWFString& provider() const
00129         throw()
00130     {
00131         return _zProvider;
00132     }
00133 
00140     _DWFTK_API
00141     const DWFString& objectID() const
00142         throw()
00143     {
00144         return _zObjectID;
00145     }
00146 
00150     _DWFTK_API
00151     virtual void parseAttributeList( const char** ppAttributeList )
00152         throw( DWFException );
00153 
00154 #ifndef DWFTK_READ_ONLY
00155 
00159     _DWFTK_API
00160     void serializeXML( DWFXMLSerializer& rSerializer, unsigned int nFlags )
00161         throw( DWFException );
00162 
00163 #endif
00164 
00165 private:
00166 
00167     DWFString _zHRef;
00168     DWFString _zProvider;
00169     DWFString _zObjectID;
00170 };
00171 
00172 }
00173 
00174 #endif

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