Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

omglayer.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           omglayer.h  -  description
00003                              -------------------
00004     begin                : March 2006
00005     copyright            : (C) 2003 by Tim Sutton
00006     email                : tim@linfiniti.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef OMGLAYER_H
00019 #define OMGLAYER_H
00020 
00021 class QString;
00022 #include <QFile>
00023 #include "omgserialisable.h"
00029 class OMG_LIB_EXPORT OmgLayer : public OmgSerialisable 
00030 {
00031   public:
00033     OmgLayer();
00035     ~OmgLayer();
00037     OmgLayer(const OmgLayer& theLayer); 
00039     OmgLayer& operator= (const OmgLayer& theLayer);
00040     
00045     enum LayerType {MASK,MAP,FORMAT};
00046 
00047     //
00048     // Accessors
00049     //
00050 
00053     QString name() const;
00056     bool isCategorical() const;
00061     LayerType type() const;
00062 
00063     //
00064     // Mutators
00065     //
00066 
00070     void setName(QString theName);
00074     void setCategorical(bool theFlag);
00078     void setType(LayerType theType);
00082     QString toXml() const;
00087     bool fromXml(const QString theXml) { return false; } ;
00088   private:
00090     bool mCategoricalFlag;
00092     QString mName;
00094     LayerType mType; 
00095 };
00096 
00097 #endif //OMGLAYER_H
00098 

Generated on Mon Apr 28 15:08:42 2008 for openModellerDesktop by  doxygen 1.4.1-20050210