VR-Forces 4.0.4 Class Documentation
include/mtflt/mtFltGridLevel.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: mtFltGridLevel.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef mtFltGridLevel_H_
00010 #define mtFltGridLevel_H_
00011 
00012 //
00013 // \file mtFltGridLevel.h
00014 // \brief Represents a GridLevel node inside the Metaflight file
00015 //
00016 
00017 #include "mtflt/mtfltDefines.h"
00018 #include "mtflt/mtFltNode.h"
00019 #include <libxml/xmlreader.h>
00020 
00021 // \brief Grid levels represent different resolution of data inside a metaflight
00022 // Grid levels are each divided into colums and rows of <em>cells</em>. Each cell
00023 // is associated with one flight file.
00024 class DT_DLL_mtflt DtMfGridLevel : public DtMtFltNode 
00025 {    
00026 public:
00027 
00028    // Default constructor.
00029    DtMfGridLevel( );
00030 
00031    // Destructor
00032    virtual ~DtMfGridLevel( );
00033 
00034    // Copy constructor
00035    DtMfGridLevel(const DtMfGridLevel& node);
00036 
00037    // Assignment operator
00038    DtMfGridLevel& operator=(const DtMfGridLevel& orig);
00039 
00040    // Overrides the \p DtMtFltNode::readNode method to read the
00041    // node information from a Metaflight GridLevel node.   
00042    // \param root pointer to the root node of the document
00043    // \param node pointer to the xml node that will be read
00044    // \return \b true if success reading the node. \b false otherwise.
00045    virtual bool readNode(const xmlNodePtr root, xmlNodePtr node);
00046 
00047    // Returns the name of the grid level
00048    virtual DtString levelName() const;
00049 
00050    // Returns the total of column divisions in the grid level
00051    virtual unsigned int numColDivisions() const;
00052 
00053    // Returns the total of row divisions in the grid level
00054    virtual unsigned int numRowDivisions() const;
00055 
00056 protected:
00057 
00058    DtString myLevelName;
00059    int myNumColDivisions;
00060    int myNumRowDivisions;
00061     
00062 };
00063 
00064 #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)