Vault  4.1
vfilewriter.h
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 
00007 #ifndef vfilewriter_h
00008 #define vfilewriter_h
00009 
00010 #include "vfsnode.h"
00011 #include "vmemorystream.h"
00012 #include "vtextiostream.h"
00013 #include "vbinaryiostream.h"
00014 
00041 class VFileWriter {
00042 
00043     public:
00044 
00049         VFileWriter(const VFSNode& target);
00050         ~VFileWriter() {} // non-virtual, not intended for subclassing
00051         
00052         VTextIOStream& getTextOutputStream() { return mTextOutputStream; }
00053         VBinaryIOStream& getBinaryOutputStream() { return mBinaryOutputStream; }
00054         
00055         void save();
00056 
00057     private:
00058     
00059         VFSNode             mTarget;
00060         VMemoryStream       mBuffer;
00061         VTextIOStream       mTextOutputStream;
00062         VBinaryIOStream     mBinaryOutputStream;
00063 };
00064 
00065 #endif /* vfsnode_h */
00066 

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