VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
terrainDbFactory
c7bMetafileRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: c7bMfRec.h,v $ $Revision: 1.9 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef c7bMetafileRecord_H_
9
#define c7bMetafileRecord_H_
10
11
// \file c7bMfRec.h
12
// \brief Contains the DtC7bMetafileRecord class declaration.
13
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
14
#include "
terrainDbFactory/terrainMetafileRecord.h
"
15
#include <iosfwd>
16
17
//
18
// The ctdb metafile record specifies one c7b (ctdb version 7) file in the
19
// metafile.
20
class
DT_DLL_terrainDbFactory
DtC7bMetafileRecord
:
public
DtTerrainMetafileRecord
21
{
22
23
public
:
24
25
// default constructor.
26
DtC7bMetafileRecord
();
27
28
// destructor
29
virtual
~
DtC7bMetafileRecord
();
30
31
// copy constructor
32
DtC7bMetafileRecord
(
const
DtC7bMetafileRecord
& orig);
33
34
// assignment operator
35
DtC7bMetafileRecord
&
operator=
(
const
DtC7bMetafileRecord
& orig);
36
37
// Returns "c7b" or "c7l" depending on extension.
38
virtual
DtString
recordTypeName
()
const
;
39
40
// Read self from stream.
41
virtual
bool
get
(std::istream&
stream
);
42
43
// identifies a token or passes it to the parent class.
44
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
45
virtual
void
setFilename
(
const
DtFilename & name);
46
47
static
DtMetafileRecord
* create();
48
49
protected
:
50
51
// Write self to stream.
52
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
53
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
54
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
55
56
protected
:
57
58
static
const
DtString
theParameterFile
;
59
60
};
61
62
#endif
63
DtC7bMetafileRecord::theParameterFile
static const DtString theParameterFile
Definition:
c7bMetafileRecord.h:58
terrainDbFactoryDefines.h
DtTerrainMetafileRecord::getAttribute
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record's attribute, returns its value in the 'value' parameter. Returns True if successful; false otherwise.
DtTerrainMetafileRecord::setFilename
virtual void setFilename(const DtFilename &name)
DtTerrainMetafileRecord::setToken
virtual bool setToken(const DtString &token, const DtString value)
identifies a token and returns true if the value can be set to it, false otherwise ...
DtC7bMetafileRecord
Definition:
c7bMetafileRecord.h:20
DtMetafileRecord::recordTypeName
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
DtTerrainMetafileRecord::writeAttributes
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
DtTerrainMetafileRecord::processToken
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
terrainMetafileRecord.h
DT_DLL_terrainDbFactory
#define DT_DLL_terrainDbFactory
Definition:
terrainDbFactoryDefines.h:23
stream
voidpf stream
Definition:
ioapi.h:39
DtMetafileRecord
Definition:
metafileRecord.h:28
DtTerrainMetafileRecord
This is the abstract base class for all terrain records in a metafile.
Definition:
terrainMetafileRecord.h:23
DtString
DtTerrainMetafileRecord::operator=
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)