forked from jacyara/GenESyS-Reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelPersistenceMyImpl1.h
39 lines (33 loc) · 981 Bytes
/
ModelPersistenceMyImpl1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: ModelPersistence.h
* Author: cancian
*
* Created on 24 de Agosto de 2018, 19:22
*/
#ifndef MODELPERSISTENCEMYIMPL1_H
#define MODELPERSISTENCEMYIMPL1_H
#include "ModelPersistence_if.h"
#include "Model.h"
class ModelPersistenceMyImpl1: public ModelPersistence_if {
public:
ModelPersistenceMyImpl1(Model* model);
ModelPersistenceMyImpl1(const ModelPersistenceMyImpl1& orig);
~ModelPersistenceMyImpl1();
public:
bool saveAsTXT(std::string filename);
bool loadAsTXT(std::string filename);
bool saveAsXML(std::string filename);
bool loadAsXML(std::string filename);
bool save(std::string filename);
bool load(std::string filename);
private:
void _saveLine(std::list<std::string>* words);
private:
Model* _model = nullptr;
};
#endif /* MODELPERSISTENCEMYIMPL1_H */