Skip to content
Snippets Groups Projects
Commit 7e9b28c5 authored by Ian Prins's avatar Ian Prins
Browse files

add context setter

parent a684abf3
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ class Item : public Feature {
bool operator<(const Item&) const;
Context getContext();
void setContext(Context);
std::string getDisplayName();
std::string getName();
int getType();
......
......@@ -44,6 +44,10 @@ Item::Context Item::getContext() {
return this->context;
}
void Item::setContext(Item::Context newContext) {
this->context = newContext;
}
std::string Item::getDisplayName() {
if (Item::identified[this->className].find(this->type) == Item::identified[this->className].end()) {
return this->pseudoName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment