Skip to content

Commit

Permalink
ofXml::Attribute: add getName
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Aug 7, 2018
1 parent e1cf97c commit 333ce0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/openFrameworks/utils/ofXml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ void ofXml::Attribute::setName(const std::string & name){
this->attr.set_name(name.c_str());
}

std::string ofXml::Attribute::getName() const{
return this->attr.name();
}

int ofXml::Attribute::getIntValue() const{
return this->attr.as_int();
}
Expand Down
1 change: 1 addition & 0 deletions libs/openFrameworks/utils/ofXml.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ofXml{
std::string getValue() const;

void setName(const std::string & name);
std::string getName() const;

int getIntValue() const;
unsigned int getUintValue() const;
Expand Down

0 comments on commit 333ce0d

Please sign in to comment.