Vault  4.1
vfilewriter.cpp
Go to the documentation of this file.
00001 /*
00002 Copyright c1997-2014 Trygve Isaacson. All rights reserved.
00003 This file is part of the Code Vault version 4.0
00004 http://www.bombaydigital.com/
00005 */
00006 
00009 #include "vfilewriter.h"
00010 
00011 // VFileWriter -------------------------------------------------
00012 
00013 VFileWriter::VFileWriter(const VFSNode& target)
00014     : mTarget(target)
00015     , mBuffer()
00016     , mTextOutputStream(mBuffer)
00017     , mBinaryOutputStream(mBuffer)
00018     {
00019 }
00020 
00021 void VFileWriter::save() {
00022     mBuffer.seek0();
00023     VBinaryIOStream bufferStream(mBuffer);
00024     
00025     VFSNode::safelyOverwriteFile(mTarget, mBuffer.getEOFOffset(), bufferStream);
00026 }

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.