Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
DocumentFileAccess.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: DocumentFileAccess.h
3//-----------------------------------------------------------------------------
4// Project: Kactus 2
5// Author: Esko Pekkarinen
6// Date: 09.02.2018
7//
8// Description:
9// Reading and writing of IP-XACT documents using a standard file system.
10//-----------------------------------------------------------------------------
11
12#ifndef DOCUMENTFILEACCESS_H
13#define DOCUMENTFILEACCESS_H
14
15#include <KactusAPI/KactusAPIGlobal.h>
16
17#include <QSharedPointer>
18#include <QString>
19
20
21class Document;
22class MessageMediator;
23
24//-----------------------------------------------------------------------------
26//-----------------------------------------------------------------------------
28{
30 KACTUS2_API QSharedPointer<Document> readDocument(QString const& path);
31
33 KACTUS2_API bool writeDocument(QSharedPointer<Document> model, QString const& path);
34
35};
36
37#endif // DOCUMENTFILEACCESS_H
Interface for outputting messages to the user.
Reading and writing of IP-XACT documents using a standard file system.
KACTUS2_API QSharedPointer< Document > readDocument(QString const &path)
Reads the document from given path.
KACTUS2_API bool writeDocument(QSharedPointer< Document > model, QString const &path)
Writes to document model to the given path.