-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathModelInfrastructure.cpp
43 lines (33 loc) · 973 Bytes
/
ModelInfrastructure.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
/*
* 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: ModelInfrastructure.cpp
* Author: cancian
*
* Created on 21 de Junho de 2018, 19:40
*/
#include <typeinfo>
#include "ModelInfrastructure.h"
ModelInfrastructure::ModelInfrastructure(std::string thistypename) {
_id = Util::_S_generateNewIdOfType(thistypename);
_name = thistypename+ " "+std::to_string(_id);
}
ModelInfrastructure::ModelInfrastructure(const ModelInfrastructure& orig) {
}
ModelInfrastructure::~ModelInfrastructure() {
}
std::string ModelInfrastructure::show(){
return "id="+std::to_string(_id)+",name=\""+_name+"\"";
}
Util::identitifcation ModelInfrastructure::getId() const {
return _id;
}
void ModelInfrastructure::setName(std::string _name) {
this->_name = _name;
}
std::string ModelInfrastructure::getName() const {
return _name;
}