VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vmapMetafileRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.** All rights reserved.
3 ******************************************************************************/
4 /******************************************************************************
5 * $RCSfile: vmapMfRec.h,v $ $Revision: 1.7 $ $State: Exp $
6 ******************************************************************************/
7 
8 #ifndef VMAP_METAFILE_RECORD_H_
9 #define VMAP_METAFILE_RECORD_H_
10 
11 #include <list>
12 
15 
18 
20 {
21 
22 public:
23 
24  // default constructor.
26 
27  // destructor
28  virtual ~DtVmapMetafileRecord();
29 
30  // copy constructor
32 
33  // assignment operator
35 
36  // Returns "vpf".
37  virtual DtString recordTypeName() const;
38 
39  // Read self from stream.
40  virtual bool get(std::istream& stream);
41 
42  // identifies a token or passes it to the parent class.
43  virtual bool processToken(std::istream& stream, DtString& token);
44 
45  static DtMetafileRecord* create();
46 
47  std::list<DtString> libraryList();
48  std::list<DtString> thematicList();
49  std::list<DtString> featureList();
50 
51 protected:
52  // Write self to stream.
53  virtual bool writeAttributes(std::ostream& stream) const;
54  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
55  virtual bool setToken(const DtString& token, const DtString value);
56 
57 protected:
64 
68 
69 };
70 
71 #endif
72 
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.
Definition: vectorDataRecord.h:24
static const DtString theParameterNECorner
Definition: vmapMetafileRecord.h:63
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
DtString myCurrentDatabasePath
Definition: vmapMetafileRecord.h:65
virtual DtString recordTypeName() const
Returns the type name for the particular record. Descendants should have this method return some stri...
static const DtString theParameterLibrary
Definition: vmapMetafileRecord.h:59
DtString myCurrentFeatureClass
Definition: vmapMetafileRecord.h:67
DtVectorDataRecord & operator=(const DtVectorDataRecord &rhs)
static DtMetafileRecord * create()
static const DtString theParameterThematicLayer
Definition: vmapMetafileRecord.h:60
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 ...
static const DtString theParameterSWCorner
Definition: vmapMetafileRecord.h:62
static const DtString theParameterLibraryPath
Definition: vmapMetafileRecord.h:58
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
Definition: vmapMetafileRecord.h:19
static const DtString theParameterFeatureClass
Definition: vmapMetafileRecord.h:61
DtString myCurrentThematicLayer
Definition: vmapMetafileRecord.h:66

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)