Zao SDK for Jetson / libzao-endpoint API リファレンス 1.2.0.0 (2023-10-30)
Loading...
Searching...
No Matches
RoomGroupList.hpp
1#ifndef ZAO_ENDPOINT_CONTROL_ROOM_GROUP_LIST_HPP
2#define ZAO_ENDPOINT_CONTROL_ROOM_GROUP_LIST_HPP
3
4#include <string>
5#include <vector>
6
7namespace zao {
8namespace endpoint {
9namespace control {
10
15 public:
20 RoomGroupEntry() noexcept {}
21
30 RoomGroupEntry(const std::uint32_t id, const std::string& name,
31 const std::string& nickname) noexcept {
32 SetId(id);
33 SetName(name);
34 SetNickname(nickname);
35 }
36
40 std::uint32_t GetId() const noexcept { return id_; }
41
47 void SetId(std::uint32_t id) noexcept { id_ = id; }
48
52 std::string GetName() const noexcept { return name_; }
53
59 void SetName(const std::string& name) noexcept { name_ = name; }
60
64 std::string GetNickname() const noexcept { return nickname_; }
65
71 void SetNickname(const std::string& nickname) noexcept {
72 nickname_ = nickname;
73 }
74
82 bool operator==(const RoomGroupEntry& other) const noexcept {
83 return id_ == other.id_ && name_ == other.name_ &&
84 nickname_ == other.nickname_;
85 }
86
94 bool operator!=(const RoomGroupEntry& other) const noexcept {
95 return !(*this == other);
96 }
97
98 private:
102 std::uint32_t id_ = 0;
103
107 std::string name_;
108
112 std::string nickname_;
113};
114
119 public:
124 RoomGroupList() noexcept {}
125
129 std::vector<RoomGroupEntry> GetRoomGroups() const noexcept {
130 return room_groups_;
131 }
132
138 void SetRoomGroup(RoomGroupEntry& room_group) noexcept {
139 room_groups_.push_back(room_group);
140 }
141
145 std::uint32_t GetSelectedId() const noexcept { return selected_id_; }
146
152 void SetSelectedId(std::uint32_t id) noexcept { selected_id_ = id; }
153
154 private:
158 std::vector<RoomGroupEntry> room_groups_;
159
163 std::uint32_t selected_id_;
164};
165
166} // namespace control
167} // namespace endpoint
168} // namespace zao
169
170#endif // ZAO_ENDPOINT_CONTROL_ROOM_GROUP_LIST_HPP
ルームグループのフォーマット
Definition RoomGroupList.hpp:14
void SetNickname(const std::string &nickname) noexcept
ルームグループのニックネームを設定する.
Definition RoomGroupList.hpp:71
bool operator!=(const RoomGroupEntry &other) const noexcept
ルームグループ同士を非等値比較する
Definition RoomGroupList.hpp:94
void SetId(std::uint32_t id) noexcept
ルームグループのIDを設定する.
Definition RoomGroupList.hpp:47
void SetName(const std::string &name) noexcept
ルームグループのネームを設定する.
Definition RoomGroupList.hpp:59
std::string GetName() const noexcept
ルームグループのネームを取得する.
Definition RoomGroupList.hpp:52
bool operator==(const RoomGroupEntry &other) const noexcept
ルームグループ同士を等値比較する
Definition RoomGroupList.hpp:82
std::uint32_t GetId() const noexcept
ルームグループのIDを取得する.
Definition RoomGroupList.hpp:40
std::string GetNickname() const noexcept
ルームグループのニックネームを取得する.
Definition RoomGroupList.hpp:64
RoomGroupEntry() noexcept
RoomGroupEntry オブジェクトをデフォルト構築する.
Definition RoomGroupList.hpp:20
RoomGroupEntry(const std::uint32_t id, const std::string &name, const std::string &nickname) noexcept
RoomGroupEntry オブジェクトを初期値付きで構築する.
Definition RoomGroupList.hpp:30
ルームグループリストのフォーマット
Definition RoomGroupList.hpp:118
std::vector< RoomGroupEntry > GetRoomGroups() const noexcept
ルームグループの動的配列を取得する.
Definition RoomGroupList.hpp:129
void SetRoomGroup(RoomGroupEntry &room_group) noexcept
ルームグループを動的配列に追加する.
Definition RoomGroupList.hpp:138
RoomGroupList() noexcept
RoomGroupList オブジェクトをデフォルト構築する.
Definition RoomGroupList.hpp:124
std::uint32_t GetSelectedId() const noexcept
選択されているルームグループのIDを取得する.
Definition RoomGroupList.hpp:145
void SetSelectedId(std::uint32_t id) noexcept
ルームグループのIDを選択設定する.
Definition RoomGroupList.hpp:152
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11