00001 /*************************************************************************** 00002 ** 00003 ** This file is part of dinvermatlab. 00004 ** 00005 ** This file is distributed under the terms of the Geopsy.org Commercial 00006 ** License appearing in the file LICENSE.COMMERCIAL included in the packaging 00007 ** of this file. 00008 ** 00009 ** This file is distributed in the hope that it will be useful, but WITHOUT 00010 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 ** FITNESS FOR A PARTICULAR PURPOSE. See Geopsy.org Commercial License for 00012 ** more details. 00013 ** 00014 ** You should have received a copy of the Geopsy.org Commercial License 00015 ** along with this program. If not, see <http://www.geopsy.org>. 00016 ** 00017 ** See http://www.geopsy.org for more information. 00018 ** 00019 ** Created : 2008-11-23 00020 ** Authors : 00021 ** Marc Wathelet 00022 ** Marc Wathelet (LGIT, Grenoble, France) 00023 ** 00024 ***************************************************************************/ 00025 00026 #ifndef MATLABTARGET_H 00027 #define MATLABTARGET_H 00028 00029 #include <QGpCoreTools.h> 00030 00031 #define MATLAB_OUTPUT_BUFFER_SIZE 4096 00032 00033 class MatlabTarget : public XMLClass 00034 { 00035 TRANSLATIONS("MatlabTarget") 00036 public: 00037 MatlabTarget() {} 00038 MatlabTarget(const MatlabTarget& o); 00039 00040 virtual const QString& xml_tagName() const {return xmlMatlabTargetTag;} 00041 static const QString xmlMatlabTargetTag; 00042 00043 bool isEmpty() const {return _forwardScript.isEmpty();} 00044 bool isOk(int nParams); 00045 00046 void setStartup(QString s) {_startup=s;} 00047 QString startup() const {return _startup;} 00048 00049 void setScriptPath(QString s) {_scriptPath=s;} 00050 QString scriptPath() const {return _scriptPath;} 00051 00052 void setInitScript(QString s) {_initScript=s;} 00053 QString initScript() const {return _initScript;} 00054 00055 void setForwardScript(QString s) {_forwardScript=s;} 00056 QString forwardScript() const {return _forwardScript;} 00057 protected: 00058 virtual void xml_writeProperties(XML_WRITEPROPERTIES_ARGS) const; 00059 virtual XMLMember xml_member(XML_MEMBER_ARGS); 00060 virtual bool xml_setProperty(XML_SETPROPERTY_ARGS); 00061 private: 00062 QString _startup, _scriptPath, _initScript, _forwardScript; 00063 }; 00064 00065 #endif // MATLABTARGET_H