personalities get a name
This commit is contained in:
parent
3e805960d7
commit
dcbd735476
|
@ -30,7 +30,8 @@ namespace DMX {
|
|||
* @brief Personality::Personality
|
||||
*/
|
||||
Personality::Personality()
|
||||
: description_("Null")
|
||||
: name_("Default Name")
|
||||
, description_("Default Description")
|
||||
, footprint_(0)
|
||||
{
|
||||
}
|
||||
|
@ -44,6 +45,26 @@ Personality::~Personality()
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Personality::name
|
||||
* @return
|
||||
*/
|
||||
const std::string Personality::name() const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Personality::description
|
||||
* @return
|
||||
*/
|
||||
const std::string Personality::description() const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Personality::footprint
|
||||
* @return
|
||||
|
@ -54,13 +75,4 @@ uint16_t Personality::footprint() const
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Personality::description
|
||||
* @return
|
||||
*/
|
||||
std::string Personality::description() const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
} // namespace DMX
|
||||
|
|
|
@ -38,9 +38,11 @@ public:
|
|||
virtual ~Personality();
|
||||
|
||||
uint16_t footprint() const;
|
||||
std::string description() const;
|
||||
const std::string name() const;
|
||||
const std::string description() const;
|
||||
|
||||
protected:
|
||||
std::string name_; //!< text name
|
||||
std::string description_; //!< text description
|
||||
uint16_t footprint_; //!< DMX footprint size
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue