VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dfadMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: dfadRec.h,v $ $Revision: 1.12 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef dfadMetafileRecord_H_
9 #define dfadMetafileRecord_H_
10 
11 // \file dfadRec.h
12 // \brief Contains the DtDfadMetafileRecord class declaration.
15 #include <iosfwd>
16 
17 //
18 // DtDfadMetafileRecord represents the parameters that can be specified in a
19 // DfadMetafileRecord, usually in a .map file, which is used to specify how and
20 // what dfad files to import into a terrain.
22 {
23 
24 public:
25 
26  // default constructor.
28 
29  // destructor
30  virtual ~DtDfadMetafileRecord();
31 
32  // copy constructor
34 
35  // assignment operator
37 
38  // Returns "dfad".
39  virtual DtString recordTypeName() const;
40 
41  // Read self from stream.
42  virtual bool get(std::istream& stream);
43 
44  // identifies a token or passes it to the parent class.
45  virtual bool processToken(std::istream& stream, DtString& token);
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 
65  static const DtString theDatumShift;
68 };
69 
70 #endif
71 
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter. Returns True if successful; false otherwise.
static const DtString theParameterFidSmcFilename
Definition: dfadMetafileRecord.h:60
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
Definition: vectorDataRecord.h:24
static const DtString theParameterFilename
Definition: dfadMetafileRecord.h:58
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
static const DtString theDatumShift
Definition: dfadMetafileRecord.h:65
static const DtString theParameterColorFilename
Definition: dfadMetafileRecord.h:62
static const DtString theRefInverseFlattening
Definition: dfadMetafileRecord.h:67
static const DtString theParameterImportFilename
Definition: dfadMetafileRecord.h:59
virtual DtString recordTypeName() const
Returns the type name for the particular record. Descendants should have this method return some stri...
static const DtString theRefEllipsoidMinor
Definition: dfadMetafileRecord.h:64
static const DtString theRefEllipsoidMajor
Definition: dfadMetafileRecord.h:63
DtVectorDataRecord & operator=(const DtVectorDataRecord &rhs)
static DtMetafileRecord * create()
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 ...
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
static const DtString theParameterDfadSedrisFilename
Definition: dfadMetafileRecord.h:61
Definition: dfadMetafileRecord.h:21
static const DtString theProjectionCentralScale
Definition: dfadMetafileRecord.h:66

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)