VR-Forces 4.0.4 Class Documentation
include/mtflt/mtFltDs.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: mtFltDs.h,v $ $Revision: 1.13 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef mtFltDs_H_
00010 #define mtFltDs_H_
00011 
00012 //
00013 // \file mtFltDs.h
00014 // \brief Represents an abstraction of a DataSet node inside a Metaflight file.
00015 //
00016 
00017 #include "mtflt/mtFltNode.h"
00018 #include "tdbutil/filenameUtil.h"
00019 #include <vlutil/vlConfig.h>
00020 #include <vector>
00021 
00022 // \brief Represents an abstraction of a DataSet node inside a Metaflight file.
00023 // Datasets desribe the geometry used to build into the runtime scene graph. A
00024 // Dataset is a collection of files that share a geographic Coverage area, a 
00025 // Gridstack definition, and a filename pattern. The Dataset is an abstract 
00026 // class that represents a collection of files that share a common root 
00027 // directory path.
00028 class DT_DLL_mtflt DtMtFltDataset : public DtMtFltNode
00029 {
00030 public:
00031    
00032    // Default constructor.
00033    DtMtFltDataset();
00034    
00035    // Destructor
00036    virtual ~DtMtFltDataset();
00037    
00038    // Copy constructor
00039    DtMtFltDataset(const DtMtFltDataset& node);
00040    
00041    // Assignment operator
00042    DtMtFltDataset& operator=(const DtMtFltDataset& orig);
00043   
00044    // Overrides the \p DtMtFltNode::readNode method to read the
00045    // common information to all DataSet nodes in the Metaflight file.
00046    // \param root pointer to the root node of the document
00047    // \param node pointer to the xml node that will be read
00048    // \return \b true if success reading the node. \b false otherwise.
00049    virtual bool readNode(const xmlNodePtr root, xmlNodePtr node);
00050 
00051    // Returns the Dataset's name
00052    virtual DtString dsName() const;
00053 
00054    // Returns the Dataset's title
00055    virtual DtString dsTitle() const;
00056 
00057    // Returns the Dataset's volume information. This is typically a drive letter
00058    virtual DtString volume() const;
00059 
00060    // Returns the Root path associated with the Dataset
00061    virtual DtString rootPath() const;
00062 
00063    // Returns the filename extension associated with the Dataset
00064    virtual DtString fileFormat() const;
00065 
00066    // Returns a vector with the filenames that conform this dataset
00067    // \param root mftFilename name of the metaflight file
00068    // \param files vector of strings in which the filelames are returned
00069    // \return \b true if there is at least one filename in the returning vector, 
00070    // \b false otherwise.
00071    virtual bool files(const DtFilename& mftFilename, std::vector<std::string>& files)=0;
00072 
00073 protected:
00074 
00075    DtString myDsName;
00076    DtString myDsTitle;
00077    DtString myDsDescription; 
00078    DtString myVolume;
00079    DtString myRootPath;
00080    DtString myFileFormat;
00081 
00082 };
00083 
00084 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)