TDME2  1.9.200
BasePropertiesSubView.cpp
Go to the documentation of this file.
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
10 
11 using std::string;
12 
18 
19 BasePropertiesSubView::BasePropertiesSubView(BasePropertiesSubController* prototypeBaseSubController)
20 {
21  this->prototypeBaseSubController = prototypeBaseSubController;
22 }
23 
24 void BasePropertiesSubView::setPrototypeData(Prototype* prototype, const string& name, const string& description)
25 {
26  if (prototype == nullptr)
27  return;
28 
29  prototype->setName(name);
30  prototype->setDescription(description);
31 }
void setName(const string &name)
Set up name.
void setDescription(const string &description)
Set up description.
Base property model class.
Definition: BaseProperty.h:15
Prototype definition.
Definition: Prototype.h:55
void setPrototypeData(Prototype *prototype, const string &name, const string &description)
Update current model data.