VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeVectorMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: shapeVectorMfRec.h,v $ $Revision: 1.16 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtShapeVectorMetafileRecord_H_
10 #define DtShapeVectorMetafileRecord_H_
11 
14 #include <vlutil/vlFilename.h>
15 #include <iosfwd>
16 
17 //
18 // The shape metafile record has a list of individual shape files for
19 // feature data.
21 {
22 
23 public:
24 
25  // default constructor.
27 
28  // destructor
29  virtual ~DtShapeVectorMetafileRecord();
30 
31  // copy constructor
33 
34  // assignment operator
36 
37  // Returns "shape".
38  virtual DtString recordTypeName() const;
39 
40  // Clears the vector files from the vector initializer list
41  virtual void resetFileLists();
42 
43  // Read self from stream.
44  virtual bool get(std::istream& stream);
45 
46  // identifies a token or passes it to the parent class.
47  virtual bool processToken(std::istream& stream, DtString& token);
48 
49  static DtMetafileRecord* create();
50 
51 protected:
52 
53  // Write self to stream.
54  virtual bool writeAttributes(std::ostream& stream) const;
55  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
56  virtual bool setToken(const DtString& token, const DtString value);
57 
58 protected:
59 
61  static const DtString theOrigin;
62 
63  static const DtString theFccType;
64  static const DtString theAttribute;
65  // Maps numerical type to the feature it represents. ie load in a shape file
66  // road.shp. Type is assigned to 240. The sedris map matches that 240 with the
67  // feature of road and it's associated attributes.
68  static const DtString theSedrisMapFile;
69  // Maps a shape feature to a color
70  static const DtString theSedrisColorMapFile; //
71 };
72 
73 #endif
74 
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.
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
static const DtString theSedrisMapFile
Definition: shapeVectorMetafileRecord.h:68
Definition: vectorDataRecord.h:24
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
static const DtString theOrigin
Definition: shapeVectorMetafileRecord.h:61
Definition: shapeVectorMetafileRecord.h:20
virtual DtString recordTypeName() const
Returns the type name for the particular record. Descendants should have this method return some stri...
virtual void resetFileLists()
Clears any file lists this record holds onto.
DtVectorDataRecord & operator=(const DtVectorDataRecord &rhs)
static DtMetafileRecord * create()
static const DtString theFccType
Definition: shapeVectorMetafileRecord.h:63
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
static const DtString theIsFeatureDataFile
Definition: shapeVectorMetafileRecord.h:60
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
static const DtString theSedrisColorMapFile
Definition: shapeVectorMetafileRecord.h:70
static const DtString theAttribute
Definition: shapeVectorMetafileRecord.h:64

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)