You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2002/06/20 00:00:12 UTC

cvs commit: xml-xerces/c/src/xercesc/util PlatformUtils.hpp

peiyongz    2002/06/19 15:00:12

  Modified:    c/src/xercesc/util PlatformUtils.hpp
  Log:
  DOM3:DOMSave Interface support: openFiletoWrite(), writeBuffertoFile()
  
  Revision  Changes    Path
  1.3       +46 -1     xml-xerces/c/src/xercesc/util/PlatformUtils.hpp
  
  Index: PlatformUtils.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/PlatformUtils.hpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PlatformUtils.hpp	20 Feb 2002 18:17:02 -0000	1.2
  +++ PlatformUtils.hpp	19 Jun 2002 22:00:12 -0000	1.3
  @@ -249,6 +249,30 @@
         */
       static FileHandle openFile(const XMLCh* const fileName);
   
  +    /** Open a named file to write
  +      *
  +      * This must be implemented by the per-platform driver, which should
  +      * use local file services to open passed file. If it fails, a
  +      * null handle pointer should be returned.
  +      *
  +      * @param fileName The string containing the name of the file
  +      *
  +      * @return The file handle of the opened file
  +      */
  +    static FileHandle openFileToWrite(const char* const fileName);
  +
  +    /** Open a named file to write
  +      *
  +      * This must be implemented by the per-platform driver, which should
  +      * use local file services to open the passed file. If it fails, a
  +      * null handle pointer should be returned.
  +      *
  +      * @param fileName The string containing the name of the file
  +      *
  +      * @return The file handle of the opened file
  +      */
  +    static FileHandle openFileToWrite(const XMLCh* const fileName);
  +
       /** Opens the standard input as a file
         *
         * This must be implemented by the per-platform driver, which should
  @@ -280,6 +304,27 @@
                   FileHandle      theFile
           , const unsigned int    toRead
           ,       XMLByte* const  toFill
  +    );
  +
  +    /** Writes the buffer to the file
  +      *
  +      * This must be implemented by the per-platform driver, which should
  +      * use local file services to write up to 'toWrite' bytes of data to
  +      * the passed file. Unless exception raised by local file services,
  +      * 'toWrite' bytes of data is to be written to the passed file.
  +      *
  +      * @param theFile The file handle to be written to.
  +      * @param toWrite The maximum number of byte to write from the current
  +      * position
  +      * @param toFlush The byte buffer to flush
  +      *
  +      * @return void
  +      */
  +    static void writeBufferToFile
  +    (
  +          FileHandle     const  theFile
  +        , long                  toWrite
  +        , const XMLByte* const  toFlush
       );
   
       /** Resets the file handle
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org