00001 /*************************************************************************** 00002 ** 00003 ** This file is part of GeopsyCore. 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 : 2009-10-21 00022 ** Authors : 00023 ** Marc Wathelet 00024 ** Marc Wathelet (LGIT, Grenoble, France) 00025 ** 00026 ***************************************************************************/ 00027 00028 #ifndef ASCIISIGNALFORMATCOMPONENT_H 00029 #define ASCIISIGNALFORMATCOMPONENT_H 00030 00031 #include <QtCore> 00032 00033 #include "Signal.h" 00034 #include "GeopsyCoreDLLExport.h" 00035 00036 namespace GeopsyCore { 00037 00038 class GEOPSYCORE_EXPORT AsciiSignalFormatComponent : public XMLClass 00039 { 00040 public: 00041 AsciiSignalFormatComponent(); 00042 AsciiSignalFormatComponent(const AsciiSignalFormatComponent& o); 00043 00044 virtual const QString& xml_tagName() const {return xmlComponentTag;} 00045 static const QString xmlComponentTag; 00046 00047 const QString& pattern() const {return _pattern;} 00048 void setPattern(const QString& p) {_pattern=p;} 00049 00050 Signal::Components component() const {return _component;} 00051 void setComponent(Signal::Components c) {_component=c;} 00052 protected: 00053 virtual void xml_writeProperties(XML_WRITEPROPERTIES_ARGS) const; 00054 virtual XMLMember xml_member(XML_MEMBER_ARGS); 00055 virtual bool xml_setProperty(XML_SETPROPERTY_ARGS); 00056 private: 00057 QString _pattern; 00058 Signal::Components _component; 00059 }; 00060 00061 } // namespace GeopsyCore 00062 00063 #endif // ASCIISIGNALFORMATCOMPONENT_H