CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
ctkCmdLineModuleBackendXMLChecker.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  Library: CTK
4 
5  Copyright (c) University College London
6 
7  Licensed under the Apache License, Version 2.0 (the "License");
8  you may not use this file except in compliance with the License.
9  You may obtain a copy of the License at
10 
11  http://www.apache.org/licenses/LICENSE-2.0
12 
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18 
19 =============================================================================*/
20 
21 #ifndef CTKCMDLINEMODULEBACKENDXMLCHECKER_H
22 #define CTKCMDLINEMODULEBACKENDXMLCHECKER_H
23 
25 
26 #include "ctkCommandLineModulesBackendXMLCheckerExport.h"
27 
28 #include <QScopedPointer>
29 
30 struct ctkCmdLineModuleBackendXMLCheckerPrivate;
31 
40 class CTK_CMDLINEMODULEBACKENDXMLCHECKER_EXPORT ctkCmdLineModuleBackendXMLChecker : public ctkCmdLineModuleBackend
41 {
42 
43 public:
44 
46  ctkCmdLineModuleBackendXMLChecker(const QString &xmlToValidate);
48 
49  virtual QString name() const;
50  virtual QString description() const;
51 
56  virtual QList<QString> schemes() const;
57 
63  virtual qint64 timeStamp(const QUrl &location) const;
64 
73  virtual QByteArray rawXmlDescription(const QUrl& location, int timeout);
74 
81 
82  void setXML(const QString& xml);
83  QString xml() const;
84 
85 private:
86 
87  QScopedPointer<ctkCmdLineModuleBackendXMLCheckerPrivate> d;
88 
89 };
90 
91 #endif // CTKCMDLINEMODULEBACKENDLOCALPROCESS_H
virtual ctkCmdLineModuleFuture run(ctkCmdLineModuleFrontend *frontend)=0
The main method to actually execute the back-end process.
Abstract base class for all front-end command line module implementations.A module front-end represen...
virtual qint64 timeStamp(const QUrl &location) const =0
Returns a timestap of the backend, which for example in the case of the LocalProcess may be the last ...
virtual QByteArray rawXmlDescription(const QUrl &location, int timeout)=0
Get the XML parameter description from the given location.
virtual QList< QString > schemes() const =0
Returns a list of URL schemes this back-end can handle.
Provides a ctkCmdLineModuleBackend implementation to pretend to run a command line process...
virtual QString name() const =0
Returns the name of the type of the backend, not the name of the thing or application that is run...
virtual QString description() const =0
Returns a brief description of the type of the backend.
Abstract base class for all back-end command line module implementations.
QFuture sub-class for enhanced communication with running modules.Please see the QFuture documentatio...