Skip to content
Snippets Groups Projects
NameHolder.cpp 249 B
Newer Older
  • Learn to ignore specific revisions
  • #include "NameHolder.hpp"
    #include "util.hpp"
    
    const std::string & NameHolder::getName() const
    {
      if (name.empty())
        util::myThrow("name is empty");
    
      return name;
    }
    
    void NameHolder::setName(const std::string & name)
    {
      this->name = name;
    }