forked from jacyara/GenESyS-Reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dispose.cpp
58 lines (42 loc) · 1.22 KB
/
Dispose.cpp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* 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: Dispose.cpp
* Author: cancian
*
* Created on 21 de Junho de 2018, 20:13
*/
#include "Dispose.h"
#include "Model.h"
Dispose::Dispose(Model* model):SinkModelComponent(model) {
_name = "Dispose "+std::to_string(Util::GenerateNewIdOfType<Dispose>());
}
Dispose::Dispose(const Dispose& orig):SinkModelComponent(orig) {
}
Dispose::~Dispose() {
}
std::string Dispose::show() {
return SinkModelComponent::show()+
",collectStatistics="+std::to_string(this->_collectStatistics);
}
void Dispose::setCollectStatistics(bool _collectStatistics) {
this->_collectStatistics = _collectStatistics;
}
bool Dispose::isCollectStatistics() const {
return _collectStatistics;
}
void Dispose::_execute(Entity* entity) {
_model->removeEntity(entity, this->isCollectStatistics());
}
void Dispose::_loadInstance(std::list<std::string> words) {
}
std::list<std::string>* Dispose::_saveInstance() {
std::list<std::string>* words = new std::list<std::string>();
return words;
}
bool Dispose::_verifySymbols(std::string* errorMessage) {
return true;
}