00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00049
00050
00053 QString name() const;
00056 bool isCategorical() const;
00061 LayerType type() const;
00062
00063
00064
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