VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
metaFlightGridDs.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 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 using namespace std;
25 
26 
27 // \brief Represents an abstraction of a GridDataSet node inside a Metaflight file.
28 // A GridDataset is an abstract class that represents a Dataset with geographic area
29 // that is subdivided into a multi-leveled grid (a GridStack)
31 {
32 public:
33 
34  // Default constructor.
36 
37  // Destructor
38  virtual ~DtMetaFlightGridDs();
39 
40  // Copy constructor
42 
43  // Assignment operator
44  DtMetaFlightGridDs& operator=(const DtMetaFlightGridDs& orig);
45 
46  // Overrides the \p DtMetaFlightNode::readNode method to read the
47  // common information to all GridDataSet nodes in the Metaflight file.
48  // \param root pointer to the root node of the document
49  // \param node pointer to the xml node that will be read
50  // \return \b true if success reading the node. \b false otherwise.
51  virtual bool readNode(const xmlNodePtr root, xmlNodePtr node);
52 
53  // Returns the grid stack associated with the Dataset
54  virtual const DtMetaFlightGridStack* gridStack() const;
55 
56  // Returns a vector with the filenames that conform this dataset
57  // \param mftFilename name of the metaflight file
58  // \param files vector of strings containing all the filenames with the
59  // highest level of detail that match the filenamepattern in this dataset.
60  virtual bool files(const DtFilename& mftFilename, vector<string>& files);
61 
62 protected:
63 
65  //list< mfCoordSys* > m_CoordSysUsed;
66 
68  bool DtReplaceString(string& source, const string oldstr, const string newstr);
69 
72  bool DtReplaceString(string& source, const string oldstr, int newval);
73 
75  bool hasEnvironmentVariable(DtString& rootPath, DtString& envVar);
76 
78  void getRootPath(const DtFilename& mftFilename, DtString &rp);
79 
81  void solveEnvironmentVariable(DtString& rootPath, const DtString envVar);
82 
84  void solveStaticAttributesFilePattern(string& filePattern);
85 };
86 
87 #endif

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)