MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
filePrinter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1993, 1997 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: filePrinter.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef filePrinter_H_
10 #define filePrinter_H_
11 
12 #include "rtiUtil.h"
13 #include <vlutil/vlPrint.h>
14 #include <vlutil/vlMutex.h>
15 #include <iosfwd>
16 #include <string>
17 
18 
25 class DT_DLL_RTIUTIL DtTSFilePrinter : public MAKRti::DtPrinter
26 {
27 public:
29  DtTSFilePrinter(const char* filename);
30 
33 
36  virtual ~DtTSFilePrinter();
37 
40  virtual void resetFile(const char* filename);
41 
43  virtual bool isOpen();
44 
45  virtual void write(const std::string &st, int notify_level);
46 
47 private:
49  DtTSFilePrinter(const DtTSFilePrinter& orig);
50 
52  DtTSFilePrinter& operator=(const DtTSFilePrinter& orig);
53 
54 protected:
55 #ifndef __sgi__
56  std::ofstream myFile;
57 #else
58  std::fstream myFile;
59 #endif
60 
61  MAKRti::DtMutex myMutex;
62 };
63 
64 #endif
DtTSFilePrinter is a subclass of MAKRti::DtPrinter which opens a file and dumps all information recei...
Definition: filePrinter.h:25
MAKRti::DtMutex myMutex
Definition: filePrinter.h:61
std::ofstream myFile
Definition: filePrinter.h:56
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)