MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loggerOutputFile.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef loggerOutputFile_H_
11 #define loggerOutputFile_H_
12 
13 #include "loggerFile.h"
14 #include <lgrUtil/filePosition.h>
15 
16 class DtString;
17 
18 namespace MAKLogger
19 {
23  {
24 
25  public:
28  DtLoggerOutputFile(const DtString& filename, int version, bool truncate = true);
29 
30  private:
34  DtLoggerOutputFile& operator=(const DtLoggerOutputFile&);
35  public:
36 
38  virtual ~DtLoggerOutputFile();
39 
41  virtual int fileDescriptor();
42 
45  virtual DtFilePosition startOfData();
46 
48  virtual DtFilePosition fileSize();
49 
50  protected:
51 
53  void openFileForOutput(bool truncate = true);
54 
56  void writeFileVersion(int version);
57 
59  virtual void setFileDescriptor(int fd);
60 
61  protected:
63  };
64 }
65 
66 #endif

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)