Difference between revisions of "FileStrm.cpp"

From LSDevLinux
Jump to: navigation, search
m (Reverted edits by Okopacare (Talk); changed back to last version by Mayhewn)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ewefobyme.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
----
 
=[http://ewefobyme.co.cc CLICK HERE]=
 
----
 
</div>
 
 
{{Class|FileStream|IStream|FileStream}}
 
{{Class|FileStream|IStream|FileStream}}
 
Src/Generic/'''FileStrm.cpp''' Contains the implementation of the FileStream class.
 
Src/Generic/'''FileStrm.cpp''' Contains the implementation of the FileStream class.
Line 12: Line 4:
 
'''Description of FileStrm.cpp:''' This class provides an [http://msdn2.microsoft.com/en-us/library/aa380034.aspx IStream] wrapper around a standard FILE object.
 
'''Description of FileStrm.cpp:''' This class provides an [http://msdn2.microsoft.com/en-us/library/aa380034.aspx IStream] wrapper around a standard FILE object.
  
'''Description of FileStream class:''' This class provides IStream I/O to &quot;normal&quot; files. IStream I/O to &quot;structured files&quot; (aka &quot;compound documents&quot;) is already provided in the implementation which comes with VC++.
+
'''Description of FileStream class:''' This class provides IStream I/O to "normal" files. IStream I/O to "structured files" (aka "compound documents") is already provided in the implementation which comes with VC++.
  
 
==Members==
 
==Members==
&lt;div style=&quot;border:1px solid black; padding:3px; width:300px&quot;&gt;Unimplemented
+
<div style="border:1px solid black; padding:3px; width:300px">Unimplemented
  
&lt;span style=&quot;color:#F88&quot;&gt;Requires additional testing&lt;/span&gt;
+
<span style="color:#F88">Requires additional testing</span>
  
&lt;span style=&quot;color:#888&quot;&gt;Completed&lt;/span&gt;&lt;/div&gt;
+
<span style="color:#888">Completed</span></div>
 
   
 
   
  
 
'''Static methods'''
 
'''Static methods'''
* &lt;span style=&quot;color:#888&quot;&gt;static void Create(LPCOLESTR pszFile, int grfstgm, IStream ** ppstrm);&lt;/span&gt;
+
* <span style="color:#888">static void Create(LPCOLESTR pszFile, int grfstgm, IStream ** ppstrm);</span>
* &lt;span style=&quot;color:#888&quot;&gt;static void Create(LPCSTR pszFile, int grfstgm, IStream ** ppstrm);&lt;/span&gt;
+
* <span style="color:#888">static void Create(LPCSTR pszFile, int grfstgm, IStream ** ppstrm);</span>
  
 
'''IStream methods'''
 
'''IStream methods'''
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Read)(void * pv, ULONG cb, ULONG * pcbRead);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Read)(void * pv, ULONG cb, ULONG * pcbRead);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Write)(const void * pv, ULONG cb, ULONG * pcbWritten);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Write)(const void * pv, ULONG cb, ULONG * pcbWritten);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Seek)(LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER * plibNewPosition);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Seek)(LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER * plibNewPosition);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(SetSize)(ULARGE_INTEGER libNewSize); (Unused)&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(SetSize)(ULARGE_INTEGER libNewSize); (Unused)</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(CopyTo)(IStream * pstm, ULARGE_INTEGER cb, ULARGE_INTEGER * pcbRead, ULARGE_INTEGER * pcbWritten);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(CopyTo)(IStream * pstm, ULARGE_INTEGER cb, ULARGE_INTEGER * pcbRead, ULARGE_INTEGER * pcbWritten);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Commit)(DWORD grfCommitFlags);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Commit)(DWORD grfCommitFlags);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Revert)(void);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Revert)(void);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(LockRegion)(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(LockRegion)(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(UnlockRegion)(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(UnlockRegion)(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Stat)(STATSTG * pstatstg, DWORD grfStatFlag);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Stat)(STATSTG * pstatstg, DWORD grfStatFlag);</span>
* &lt;span style=&quot;color:#888&quot;&gt;STDMETHOD(Clone)(IStream ** ppstm);&lt;/span&gt;
+
* <span style="color:#888">STDMETHOD(Clone)(IStream ** ppstm);</span>
  
 
[[Category:Generic(FieldWorks)]]
 
[[Category:Generic(FieldWorks)]]

Latest revision as of 10:35, 24 November 2010

FileStream

Interface:
IStream
Implementation:
FileStream

Src/Generic/FileStrm.cpp Contains the implementation of the FileStream class.

Description of FileStrm.cpp: This class provides an IStream wrapper around a standard FILE object.

Description of FileStream class: This class provides IStream I/O to "normal" files. IStream I/O to "structured files" (aka "compound documents") is already provided in the implementation which comes with VC++.

Members

Unimplemented

Requires additional testing

Completed


Static methods

  • static void Create(LPCOLESTR pszFile, int grfstgm, IStream ** ppstrm);
  • static void Create(LPCSTR pszFile, int grfstgm, IStream ** ppstrm);

IStream methods

  • STDMETHOD(Read)(void * pv, ULONG cb, ULONG * pcbRead);
  • STDMETHOD(Write)(const void * pv, ULONG cb, ULONG * pcbWritten);
  • STDMETHOD(Seek)(LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER * plibNewPosition);
  • STDMETHOD(SetSize)(ULARGE_INTEGER libNewSize); (Unused)
  • STDMETHOD(CopyTo)(IStream * pstm, ULARGE_INTEGER cb, ULARGE_INTEGER * pcbRead, ULARGE_INTEGER * pcbWritten);
  • STDMETHOD(Commit)(DWORD grfCommitFlags);
  • STDMETHOD(Revert)(void);
  • STDMETHOD(LockRegion)(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType);
  • STDMETHOD(UnlockRegion)(ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType);
  • STDMETHOD(Stat)(STATSTG * pstatstg, DWORD grfStatFlag);
  • STDMETHOD(Clone)(IStream ** ppstm);