MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
libsrc
RTI
saveFile.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: saveFile.h,v $ $Revision: 1.11 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtRtiSaveFile_H_
13
#define DtRtiSaveFile_H_
14
15
#include "
rtiMsConfig.h
"
16
#include <vlutil/vlNetTypes.h>
17
#include <vlutil/vlString.h>
18
#include <stdio.h>
19
20
21
class
DT_DLL_LRC
DtRtiSaveFile
22
{
23
public
:
25
DtRtiSaveFile
(
const
char
* filename );
26
28
DtRtiSaveFile
(
const
char
* filename,
bool
readOnly );
29
31
virtual
~
DtRtiSaveFile
();
32
34
virtual
const
MAKRti::DtString& fileName();
35
38
virtual
bool
isOk();
39
41
//
44
virtual
void
setForRead();
45
47
//
49
virtual
void
setForWrite();
50
52
//
54
virtual
void
setForAppend
(){};
55
57
virtual
const
char
* readNextPacket();
58
60
virtual
void
writePacket(
const
char
* packet,
int
length);
61
62
protected
:
63
bool
myReadOnly
;
64
char
*
myCurrentPacket
;
65
FILE*
myFp
;
66
MAKRti::DtString
myFileName
;
67
};
68
69
#endif
Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)