light.cpp 406 B

12345678910111213141516171819202122232425262728
  1. #include <string>
  2. #include "light.hpp"
  3. namespace cx_light {
  4. light::light(std::string name, std::string address) {
  5. this->name = name;
  6. this->address = address;
  7. }
  8. light::~light() {
  9. }
  10. std::string light::get_name() {
  11. return this->name;
  12. }
  13. std::string light::get_address() {
  14. return this->address;
  15. }
  16. light * light::copy() {
  17. return new light(this->get_name(), this->get_address());
  18. }
  19. }