![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: mtFltGridStack.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 #ifndef mtFltGridStack_H_ 00010 #define mtFltGridStack_H_ 00011 00012 // 00013 // \file mtFltGridStack.h 00014 // \brief Represents a GridStack node inside the Metaflight file. 00015 // 00016 00017 #include "mtflt/mtfltDefines.h" 00018 #include "mtflt/mtFltGridStructure.h" 00019 #include <libxml/xmlreader.h> 00020 00021 // \brief Represents a GridStack node inside the Metaflight file. 00022 // This class represents a Grid Stack, which is a multi-level indexing scheme 00023 // that spatially divides a Coverage and binds the indices to files on disk that 00024 // conform to some naming convention described by a FilenamePattern. This is 00025 // one of the types of information conveyed by MetaFlight. 00026 class DT_DLL_mtflt DtMtFltGridStack : public DtMtFltNode 00027 { 00028 public: 00029 00030 // Default constructor. 00031 DtMtFltGridStack(); 00032 00033 // Copy constructor 00034 DtMtFltGridStack(const DtMtFltGridStack& node); 00035 00036 // Destructor 00037 virtual ~DtMtFltGridStack(); 00038 00039 // Assignment operator 00040 DtMtFltGridStack& operator=(const DtMtFltGridStack& orig); 00041 00042 // Overrides the \p DtMtFltNode::readNode method to read the 00043 // node information from a Metaflight GridStack node. 00044 // \param root pointer to the root node of the document 00045 // \param node pointer to the xml node that will be read 00046 // \return \b true if success reading the node. \b false otherwise. 00047 virtual bool readNode(const xmlNodePtr root, xmlNodePtr node); 00048 00049 // Returns the file name pattern associated with the grid stack 00050 virtual DtString fileNamePattern() const; 00051 00052 // Returns the grid structure associated with the grid stack 00053 virtual DtMtFltGridStructure* gridStructureUsed() const; 00054 00055 protected: 00056 00057 DtString myFileNamePattern; 00058 DtMtFltGridStructure* myGridStructureUsed; 00059 00060 }; 00061 00062 #endif