TempFile.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2003-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,
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 
00023 #ifndef _DWFCORE_TEMPFILE_H
00024 #define _DWFCORE_TEMPFILE_H
00025 
00030 
00031 #include "dwfcore/Core.h"
00032 #include "dwfcore/String.h"
00033 #include "dwfcore/FileInputStream.h"
00034 #include "dwfcore/FileOutputStream.h"
00035 
00036 
00037 
00038 namespace DWFCore
00039 {
00040 
00041 
00051 class DWFTempFile : virtual public DWFCoreMemory
00052 {
00053 
00054 public:
00055 
00067     _DWFCORE_API
00068     static DWFTempFile* Create( DWFString&  zTemplate,
00069                                 bool        bDeleteOnDestroy )
00070         throw( DWFException );
00071 
00080     _DWFCORE_API
00081     virtual ~DWFTempFile()
00082         throw();
00083 
00121     _DWFCORE_API
00122     DWFFileOutputStream& getOutputStream()
00123         throw( DWFException );
00124 
00135     _DWFCORE_API
00136     DWFFileInputStream* getInputStream()
00137         throw( DWFException );
00138 
00139 private:
00140 
00141     //
00142     // Constructor
00143     //
00144     DWFTempFile( DWFFileOutputStream* pOutputStream,
00145                  bool                 bDeleteOnDestroy )
00146         throw();
00147 
00148 private:
00149 
00150     DWFFile                 _oFile;
00151     DWFFileOutputStream*    _pOutputStream;
00152     bool                    _bDeleteOnDestroy;
00153 
00154 private:
00155 
00156     //
00157     // Not Implemented
00158     //
00159     DWFTempFile( const DWFTempFile& rFile );
00160     DWFTempFile& operator=( const DWFTempFile& rFile );
00161 
00162 };
00163 
00164 
00165 
00166 }
00167 
00168 
00169 #endif

Generated on Tue Jan 6 22:39:29 2009 for Autodesk DWF Core Library by  doxygen 1.4.5