MAK RTIspy API Documentation for HLA Evolved
filePrinter.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1993, 1997 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: filePrinter.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef filePrinter_H_
00010 #define filePrinter_H_
00011 
00012 #include "rtiUtil.h"
00013 #include <vlutil/vlPrint.h>
00014 #include <vlutil/vlMutex.h>
00015 #include <iosfwd>
00016 #include <string>
00017 
00018 
00025 class DT_DLL_RTIUTIL DtTSFilePrinter : public MAKRti::DtPrinter
00026 {
00027 public:
00029    DtTSFilePrinter(const char* filename);
00030 
00032    DtTSFilePrinter();
00033 
00036    virtual ~DtTSFilePrinter();
00037 
00040    virtual void resetFile(const char* filename);
00041 
00043    virtual bool isOpen();
00044 
00045    virtual void write(const std::string &st, int notify_level);
00046 
00047 private:
00049    DtTSFilePrinter(const DtTSFilePrinter& orig);
00050 
00052    DtTSFilePrinter& operator=(const DtTSFilePrinter& orig);
00053 
00054 protected:
00055 #ifndef __sgi__
00056    std::ofstream myFile;
00057 #else
00058    std::fstream myFile;
00059 #endif
00060 
00061    MAKRti::DtMutex myMutex;
00062 };
00063 
00064 #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)