VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
terrainDbFactory
rpfPaperMapRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: rpfPprMapRec.h,v $ $Revision: 1.14 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef rpfPaperMapRecord_H_
9
#define rpfPaperMapRecord_H_
10
11
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
12
#include "
terrainDbFactory/paperMapRecord.h
"
13
#include <vlutil/vlString.h>
14
15
// class DtRpfPaperMapRecord:
16
//
17
// Instances of this class are accessors to Mak terrain database metafiles.
18
// Certain database formats require the use of a metafile as the top-level
19
// file. Example: gdf, dted
20
21
class
DT_DLL_terrainDbFactory
DtRpfPaperMapRecord
:
public
DtPaperMapRecord
22
{
23
24
public
:
25
26
// default constructor.
27
DtRpfPaperMapRecord
();
28
29
// destructor
30
virtual
~
DtRpfPaperMapRecord
();
31
32
// copy constructor
33
DtRpfPaperMapRecord
(
const
DtRpfPaperMapRecord
& orig);
34
35
// assignment operator
36
DtRpfPaperMapRecord
&
operator=
(
const
DtRpfPaperMapRecord
& rhs);
37
38
virtual
DtPaperMapRecord
*
clone
();
39
40
virtual
DtString
recordTypeName
()
const
;
41
42
// Returns the type of the papermap volume.
43
// Can be one of:
44
// ADRG, ADRI, CAC, CADRG, CIB, DBDB5, DBDBV, ASRP, USRP, SRG, CRP, IT
45
virtual
const
DtString
& type()
const
;
46
virtual
void
setType(
const
DtString
& type);
47
48
// Returns resolution set by user in map file
49
virtual
const
DtString
& resolution()
const
;
50
virtual
void
setResolution(
const
DtString
& res);
51
52
// Read self from stream.
53
virtual
bool
get
(std::istream&
stream
);
54
55
// identifies a token or passes it to the parent class.
56
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
57
58
static
DtMetafileRecord
*
create
();
59
60
protected
:
61
62
// Write self to stream.
63
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
64
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
65
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
66
67
protected
:
68
69
DtString
myType
;
70
DtString
myResolution
;
71
static
const
DtString
theParameterType
;
72
static
const
DtString
theResolutionType
;
73
74
};
75
76
#endif
77
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)