diff --git a/src/CLI2.cpp b/src/CLI2.cpp index bce03c238..d80075c90 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -126,6 +126,13 @@ void A2::attribute (const std::string& name, const std::string& value) _attributes[name] = value; } +//////////////////////////////////////////////////////////////////////////////// +// Accessor for attributes. +void A2::attribute (const std::string& name, const int value) +{ + _attributes[name] = format (value); +} + //////////////////////////////////////////////////////////////////////////////// // Accessor for attributes. const std::string A2::attribute (const std::string& name) const diff --git a/src/CLI2.h b/src/CLI2.h index bccca2512..70dd178b4 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -48,6 +48,7 @@ public: void unTagAll (); */ void attribute (const std::string&, const std::string&); + void attribute (const std::string&, const int); const std::string attribute (const std::string&) const; const std::string dump () const;