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
ctkCmdLineModuleBackend
Abstract base class for all back-end command line module implementations.
Definition: ctkCmdLineModuleBackend.h:47
ctkCmdLineModuleFuture
QFuture sub-class for enhanced communication with running modules.
Definition: ctkCmdLineModuleFuture.h:44
ctkCmdLineModuleBackendXMLChecker::run
virtual ctkCmdLineModuleFuture run(ctkCmdLineModuleFrontend *frontend)
Run a front-end for this module in a local process.
QList
Definition: ctkCmdLineModuleBackend.h:30
ctkCmdLineModuleBackendXMLChecker::ctkCmdLineModuleBackendXMLChecker
ctkCmdLineModuleBackendXMLChecker()
ctkCmdLineModuleBackendXMLChecker::rawXmlDescription
virtual QByteArray rawXmlDescription(const QUrl &location, int timeout)
Get the raw XML description from the module at location.
ctkCmdLineModuleBackendXMLChecker::name
virtual QString name() const
Returns the name of the type of the backend, not the name of the thing or application that is run.
ctkCmdLineModuleBackendXMLChecker
Provides a ctkCmdLineModuleBackend implementation to pretend to run a command line process,...
Definition: ctkCmdLineModuleBackendXMLChecker.h:41
ctkCmdLineModuleFrontend
Abstract base class for all front-end command line module implementations.
Definition: ctkCmdLineModuleFrontend.h:53
ctkCmdLineModuleBackendXMLChecker::~ctkCmdLineModuleBackendXMLChecker
~ctkCmdLineModuleBackendXMLChecker()
ctkCmdLineModuleBackendXMLChecker::setXML
void setXML(const QString &xml)
ctkCmdLineModuleBackendXMLChecker::description
virtual QString description() const
Returns a brief description of the type of the backend.
ctkCmdLineModuleBackendXMLChecker::xml
QString xml() const
ctkCmdLineModuleBackendXMLChecker::ctkCmdLineModuleBackendXMLChecker
ctkCmdLineModuleBackendXMLChecker(const QString &xmlToValidate)
ctkCmdLineModuleBackendXMLChecker::schemes
virtual QList< QString > schemes() const
This back-end can handle the "xml checker" URL scheme.
ctkCmdLineModuleBackend.h
ctkCmdLineModuleBackendXMLChecker::timeStamp
virtual qint64 timeStamp(const QUrl &location) const
Returns the last modified time of the module at location.