MAK RTIspy API Documentation for HLA Evolved
saveFile.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: saveFile.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtRtiSaveFile_H_
00013 #define DtRtiSaveFile_H_
00014 
00015 #include "rtiMsConfig.h"
00016 #include <vlutil/vlNetTypes.h>
00017 #include <vlutil/vlString.h>
00018 #include <stdio.h>
00019 
00020 
00021 class DT_DLL_LRC DtRtiSaveFile
00022 {
00023 public:
00025    DtRtiSaveFile( const char* filename );
00026 
00028    DtRtiSaveFile( const char* filename, bool readOnly );
00029 
00031    virtual ~DtRtiSaveFile();
00032 
00034    virtual const MAKRti::DtString& fileName(); 
00035    
00038    virtual bool isOk();
00039 
00041    //
00044    virtual void setForRead();
00045 
00047    //
00049    virtual void setForWrite();
00050 
00052    //
00054    virtual void setForAppend(){};
00055 
00057    virtual const char* readNextPacket();
00058    
00060    virtual void writePacket( const char* packet, int length);
00061 
00062  protected:
00063    bool myReadOnly;
00064    char* myCurrentPacket;
00065    FILE* myFp;
00066    MAKRti::DtString myFileName;
00067 };
00068 
00069 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)