VR-Forces 4.1 Class Documentation
mtFltDs.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: mtFltDs.h,v $ $Revision: 1.13 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef mtFltDs_H_
10 #define mtFltDs_H_
11 
12 //
13 // \file mtFltDs.h
14 // \brief Represents an abstraction of a DataSet node inside a Metaflight file.
15 //
16 
17 #include "mtflt/mtFltNode.h"
18 #include "tdbutil/filenameUtil.h"
19 #include <vlutil/vlConfig.h>
20 #include <vector>
21 
22 // \brief Represents an abstraction of a DataSet node inside a Metaflight file.
23 // Datasets desribe the geometry used to build into the runtime scene graph. A
24 // Dataset is a collection of files that share a geographic Coverage area, a
25 // Gridstack definition, and a filename pattern. The Dataset is an abstract
26 // class that represents a collection of files that share a common root
27 // directory path.
29 {
30 public:
31 
32  // Default constructor.
34 
35  // Destructor
36  virtual ~DtMtFltDataset();
37 
38  // Copy constructor
39  DtMtFltDataset(const DtMtFltDataset& node);
40 
41  // Assignment operator
43 
44  // Overrides the \p DtMtFltNode::readNode method to read the
45  // common information to all DataSet nodes in the Metaflight file.
46  // \param root pointer to the root node of the document
47  // \param node pointer to the xml node that will be read
48  // \return \b true if success reading the node. \b false otherwise.
49  virtual bool readNode(const xmlNodePtr root, xmlNodePtr node);
50 
51  // Returns the Dataset's name
52  virtual DtString dsName() const;
53 
54  // Returns the Dataset's title
55  virtual DtString dsTitle() const;
56 
57  // Returns the Dataset's volume information. This is typically a drive letter
58  virtual DtString volume() const;
59 
60  // Returns the Root path associated with the Dataset
61  virtual DtString rootPath() const;
62 
63  // Returns the filename extension associated with the Dataset
64  virtual DtString fileFormat() const;
65 
66  // Returns a vector with the filenames that conform this dataset
67  // \param root mftFilename name of the metaflight file
68  // \param files vector of strings in which the filelames are returned
69  // \return \b true if there is at least one filename in the returning vector,
70  // \b false otherwise.
71  virtual bool files(const DtFilename& mftFilename, std::vector<std::string>& files)=0;
72 
73 protected:
74 
81 
82 };
83 
84 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)