QGpCoreTools/ColumnTextDescription.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of QGpCoreTools.
00004 **
00005 **  This library is free software; you can redistribute it and/or
00006 **  modify it under the terms of the GNU Lesser General Public
00007 **  License as published by the Free Software Foundation; either
00008 **  version 2.1 of the License, or (at your option) any later version.
00009 **
00010 **  This file is distributed in the hope that it will be useful, but WITHOUT
00011 **  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 **  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
00013 **  License for more details.
00014 **
00015 **  You should have received a copy of the GNU Lesser General Public
00016 **  License along with this library; if not, write to the Free Software
00017 **  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 **
00019 **  See http://www.geopsy.org for more information.
00020 **
00021 **  Created : 2008-11-01
00022 **  Authors :
00023 **    Marc Wathelet
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef COLUMNTEXTDESCRIPTION_H
00029 #define COLUMNTEXTDESCRIPTION_H
00030 
00031 #include "QGpCoreToolsDLLExport.h"
00032 #include "XMLClass.h"
00033 
00034 namespace QGpCoreTools {
00035 
00036 class QGPCORETOOLS_EXPORT ColumnTextDescription : public XMLClass
00037 {
00038 public:
00039   ColumnTextDescription() {
00040     _type=0;
00041     _factor=1.0;
00042   }
00043   ColumnTextDescription(const ColumnTextDescription& o) : XMLClass() {
00044     _type=o._type;
00045     _factor=o._factor;
00046     _replaceRx=o._replaceRx;
00047     _replaceAfter=o._replaceAfter;
00048   }
00049 
00050   virtual const QString& xml_tagName() const {return xmlColumnTextDescriptionTag;}
00051   static const QString xmlColumnTextDescriptionTag;
00052 
00053   int type() const {return _type;}
00054   void setType(int t) {_type=t;}
00055 
00056   double factor() const {return _factor;}
00057   void setFactor(double f) {_factor=f;}
00058 
00059   QString replaceRx() const {return _replaceRx;}
00060   void setReplaceRx(QString r) {_replaceRx=r;}
00061 
00062   QString replaceAfter() const {return _replaceAfter;}
00063   void setReplaceAfter(QString r) {_replaceAfter=r;}
00064 protected:
00065   virtual void xml_writeProperties(XML_WRITEPROPERTIES_ARGS) const;
00066   virtual bool xml_setProperty(XML_SETPROPERTY_ARGS);
00067   virtual XMLMember xml_member(XML_MEMBER_ARGS);
00068 private:
00069   int _type;
00070   double _factor;
00071   QString _replaceRx, _replaceAfter;
00072 };
00073 
00074 } // namespace QGpCoreTools
00075 
00076 #endif // COLUMNTEXTDESCRIPTION_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines