VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)