VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metaFlightGridDs.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: mtFltGridDs.h,v $ $Revision: 1.15 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef metaFlightGridDs_H_
10 #define metaFlightGridDs_H_
11 
12 //
13 // \file mtFltGridDs.h
14 // \brief Represents an abstraction of a GridDataSet node inside a Metaflight file.
15 //
16 
17 #include "mtflt/mtfltDefines.h"
19 #include <vlutil/vlConfig.h>
20 #include <vector>
21 #include <string>
23 
24 // \brief Represents an abstraction of a GridDataSet node inside a Metaflight file.
25 // A GridDataset is an abstract class that represents a Dataset with geographic area
26 // that is subdivided into a multi-leveled grid (a GridStack)
28 {
29 public:
30 
31  // Default constructor.
33 
34  // Destructor
35  virtual ~DtMetaFlightGridDs() override;
36 
37  // Copy constructor
39 
40  // Assignment operator
42 
43  // Overrides the \p DtMetaFlightNode::readNode method to read the
44  // common information to all GridDataSet nodes in the Metaflight file.
45  // \param root pointer to the root node of the document
46  // \param node pointer to the xml node that will be read
47  // \return \b true if success reading the node. \b false otherwise.
48  virtual bool readNode(const xmlNodePtr root, xmlNodePtr node) override;
49 
50  // Returns the grid stack associated with the Dataset
51  virtual const DtMetaFlightGridStack* gridStack() const;
52 
53  // Returns a vector with the filenames that conform this dataset
54  // \param mftFilename name of the metaflight file
55  // \param files vector of strings containing all the filenames with the
56  // highest level of detail that match the filenamepattern in this dataset.
57  virtual bool files(const DtFilename &mftFilename,
58  std::vector<std::string> &files) override;
59 
60 protected:
61 
63  //list< mfCoordSys* > m_CoordSysUsed;
64 
66  bool DtReplaceString(std::string& source, const std::string oldstr, const std::string newstr);
67 
70  bool DtReplaceString(std::string& source, const std::string oldstr, int newval);
71 
73  bool hasEnvironmentVariable(DtString& rootPath, DtString& envVar);
74 
76  void getRootPath(const DtFilename& mftFilename, DtString &rp);
77 
79  void solveEnvironmentVariable(DtString& rootPath, const DtString envVar);
80 
82  void solveStaticAttributesFilePattern(std::string& filePattern);
83 };
84 
85 #endif
DtMetaFlightGridStack * myGridStack
Definition: metaFlightGridDs.h:62
virtual bool files(const DtFilename &mftFilename, std::vector< std::string > &files)=0
xmlNode * xmlNodePtr
Definition: DtLightPointTable.h:20
const char * source
Definition: lz4.h:442
#define DT_DLL_mtflt
Definition: mtfltDefines.h:23
Definition: metaFlightGridStack.h:26
Definition: metaFlightGridDs.h:27
DtMetaFlightDataset & operator=(const DtMetaFlightDataset &orig)
virtual bool readNode(const xmlNodePtr root, xmlNodePtr node) override
Definition: metaFlightDataset.h:28

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)