|
Isis Developer Reference
|
Go to the documentation of this file.
14 #include <QXmlStreamWriter>
61 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
62 const QString &qName,
const QXmlAttributes &atts);
65 Q_DISABLE_COPY(XmlHandler);
69 FileName m_xmlHandlerTemplateFolderName;
74 QString m_templateType;
static QString templateRoot(QString projectRoot)
Appends the root directory name 'templates' to the project .
Definition: Project.cpp:2125
Q_DECLARE_METATYPE(Isis::Template *)
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
File name manipulation and expansion.
Definition: FileName.h:100
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
QString importName() const
Get the name of the TemplateList this file was imported under.
Definition: Template.cpp:68
void deleteFromDisk()
Delete the template from disk.
Definition: Template.cpp:88
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
void updateFileName(Project *project)
Change the file name for this template to be where it now is with the given project.
Definition: Template.cpp:78
The main project for ipce.
Definition: Project.h:289
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Template(QString fileName, QString templateType, QString importName, QObject *parent=0)
Create a Template from template file's name.
Definition: Template.cpp:19
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Method to write this Template object's member data to an XML stream.
Definition: Template.cpp:105
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QString fileName() const
Get the file name that this Template represents.
Definition: Template.cpp:50
Definition: Template.h:30
~Template()
Destroys Template object.
Definition: Template.cpp:42
Isis exception class.
Definition: IException.h:91
QString templateType() const
Get the type of template.
Definition: Template.cpp:59
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16