Lab1
Loading...
Searching...
No Matches
RapidJsonStorageStrategy Class Reference
Inheritance diagram for RapidJsonStorageStrategy:
IStorageStrategy

Public Member Functions

bool save (const QString &filePath, const QList< Note > &notes, const QList< Schema > &schemas, const QMap< QString, int > &stats) override
 Зберігає дані у вказаний файл.
 
bool load (const QString &filePath, QList< Note > &notes, QList< Schema > &schemas, QMap< QString, int > &stats) override
 Завантажує дані з файлу.
 

Member Function Documentation

◆ load()

bool RapidJsonStorageStrategy::load ( const QString &  filePath,
QList< Note > &  notes,
QList< Schema > &  schemas,
QMap< QString, int > &  stats 
)
inlineoverridevirtual

Завантажує дані з файлу.

Parameters
filePathШлях до файлу.
notes[out] Посилання на список для заповнення нотатками.
schemas[out] Посилання на список для заповнення схемами.
stats[out] Посилання на мапу для заповнення статистикою.
Returns
true, якщо операція успішна, інакше false.

Implements IStorageStrategy.

◆ save()

bool RapidJsonStorageStrategy::save ( const QString &  filePath,
const QList< Note > &  notes,
const QList< Schema > &  schemas,
const QMap< QString, int > &  stats 
)
inlineoverridevirtual

Зберігає дані у вказаний файл.

Parameters
filePathШлях до файлу.
notesСписок нотаток для збереження.
schemasСписок схем для збереження.
statsСтатистика використання для збереження.
Returns
true, якщо операція успішна, інакше false.

Implements IStorageStrategy.


The documentation for this class was generated from the following file: