VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
mtflt
metaFlightDataset.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 metaFlightDataset_H_
10
#define metaFlightDataset_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/metaFlightNode.h
"
18
#include "
tdbutil/filenameUtilities.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.
28
class
DT_DLL_mtflt
DtMetaFlightDataset
:
public
DtMetaFlightNode
29
{
30
public
:
31
32
// Default constructor.
33
DtMetaFlightDataset
();
34
35
// Destructor
36
virtual
~
DtMetaFlightDataset
();
37
38
// Copy constructor
39
DtMetaFlightDataset
(
const
DtMetaFlightDataset
& node);
40
41
// Assignment operator
42
DtMetaFlightDataset
&
operator=
(
const
DtMetaFlightDataset
& orig);
43
44
// Overrides the \p DtMetaFlightNode::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
75
DtString
myDsName
;
76
DtString
myDsTitle
;
77
DtString
myDsDescription
;
78
DtString
myVolume
;
79
DtString
myRootPath
;
80
DtString
myFileFormat
;
81
82
};
83
84
#endif
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)