From 99e2e923d0c77b02f3fb4ff648ea916954868606 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 28 Feb 2025 23:13:39 +0800 Subject: chore(store): move everything to store. --- works/life/cpp-practicum/Vendor.hpp | 45 ------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 works/life/cpp-practicum/Vendor.hpp (limited to 'works/life/cpp-practicum/Vendor.hpp') diff --git a/works/life/cpp-practicum/Vendor.hpp b/works/life/cpp-practicum/Vendor.hpp deleted file mode 100644 index 24c22ee..0000000 --- a/works/life/cpp-practicum/Vendor.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once -#include "Base.hpp" - -#include -#include - -class Vendor final { -public: - Vendor() = default; - Vendor(int id, std::u16string name, std::u16string type, - std::u16string address, std::u16string phone) - : id_(id), name_(std::move(name)), type_(std::move(type)), - address_(std::move(address)), phone_(std::move(phone)) {} - - CRU_DEFAULT_COPY(Vendor) - CRU_DEFAULT_MOVE(Vendor) - - ~Vendor() = default; - -public: - int GetId() const { return id_; } - void SetId(int id) { id_ = id; } - - std::u16string GetName() const { return name_; } - void SetName(std::u16string name) { name_ = std::move(name); } - - std::u16string GetType() const { return type_; } - void SetType(std::u16string type) { type_ = std::move(type); } - - std::u16string GetAddress() const { return address_; } - void SetAddress(std::u16string address) { address_ = std::move(address); } - - std::u16string GetPhone() const { return phone_; } - void SetPhone(std::u16string phone) { phone_ = std::move(phone); } - -private: - int id_; - std::u16string name_; - std::u16string type_; - std::u16string address_; - std::u16string phone_; -}; - -QTextStream &operator>>(QTextStream &left, Vendor &right); -QTextStream &operator<<(QTextStream &left, const Vendor &right); -- cgit v1.2.3