rocs/RocsCore
TgfFileFormatPlugin.cpp
Go to the documentation of this file.
72 setError(CouldNotOpenFile, i18n("Could not open file \"%1\" in read mode: %2", file().toLocalFile(), fileHandle.errorString()));
91 setError(EncodingProblem, i18n("Could not parse file. Identifier \"%1\" is used more than once.", identifier));
103 setError(EncodingProblem, i18n("Could not parse file. Edge from \"%1\" to \"%2\" uses undefined nodes.", from, to));
121 setError(FileIsReadOnly, i18n("Could not open file \"%1\" in write mode: %2", file().fileName(), fileHandle.errorString()));
144 out << e->from()->identifier() << " " << e->to()->identifier() << " " << e->property("value").toString() <<'\n';
class TgfFileFormatPlugin: Import and Export Plugin for TGF
Definition: TgfFileFormatPlugin.h:41
bool contains(const Key &key) const
QString errorString() const
QString simplified() const
~TgfFileFormatPlugin()
Definition: TgfFileFormatPlugin.cpp:49
void directedGraphDefaultTopology(DataStructurePtr dataStructure)
applies a default topology for undirected graphs
Definition: Topology.cpp:214
virtual void writeFile(Document &graph)
Writes given graph document to formerly specified file.
Definition: TgfFileFormatPlugin.cpp:116
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
void setError(Error error, QString message=QString())
Definition: GraphFilePluginInterface.cpp:83
int toInt(bool *ok, int base) const
DataStructurePtr addDataStructure(const QString &name=QString())
Add data structure to graph document with name name.
Definition: Document.cpp:333
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual const QStringList extensions() const
File extensions that are common for this file type.
Definition: TgfFileFormatPlugin.cpp:53
DataStructurePtr activeDataStructure() const
Definition: Document.cpp:431
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: Document.h:41
void setBackend(const QString &pluginIdentifier)
Change the active backend.
Definition: DataStructureBackendManager.cpp:240
virtual void readFile()
Open given file and imports it into internal format.
Definition: TgfFileFormatPlugin.cpp:60
virtual bool atEnd() const
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
void setGraphDocument(Document *document)
Definition: GraphFilePluginInterface.cpp:108
const KUrl & file() const
Definition: GraphFilePluginInterface.cpp:120
This class provides an interface for graph file format plugins.
Definition: GraphFilePluginInterface.h:42
static const KAboutData aboutdata("rocs_tgffileformat", 0, ki18nc("@title Displayed plugin name","TGF File Backend"),"0.1", ki18n("Read and write Trivial Graph Format (TGF) files."), KAboutData::License_GPL_V2)
qint64 readLine(char *data, qint64 maxSize)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.