-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAIPTHLDR.HXX
48 lines (40 loc) · 1.31 KB
/
AIPTHLDR.HXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* ========================================================================
Copyright (c) 1990,1996 Synergistic Software
All Rights Reserved
========================================================================
Filename: aipthldr.hxx
Author: Greg Hightower
======================================================================== */
#ifndef _AIPTHLDR_H
#define _AIPTHLDR_H
/* -----------------------------------------------------------------
class definition
----------------------------------------------------------------- */
class PATH_LEADER_DATA
{
public:
// Write to Scene File
void mfWriteData(FILE *fp);
// Read from Scene File
LONG mfReadData(FILE * fp);
FOLLOW_PATH_DATA FollowPath;
LEADER_DATA Leader;
};
/* -----------------------------------------------------------------
inline member functions
----------------------------------------------------------------- */
inline void PATH_LEADER_DATA::mfWriteData(FILE *fp)
{
FollowPath.mfWriteData(fp);
Leader.mfWriteData(fp);
}
inline LONG PATH_LEADER_DATA::mfReadData(FILE * fp)
{
LONG retVal = 1;
if (EOF == FollowPath.mfReadData(fp))
{ /* do something here on error */ }
if (EOF == Leader.mfReadData(fp))
{ /* do something here on error */ }
return retVal;
}
#endif