Zao SDK for Jetson / libzao-endpoint API リファレンス 1.5.0.0 (2024-09-25)
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
16 public:
23 RoomGroupEntry() noexcept {}
24
37 RoomGroupEntry(const std::uint32_t id, const std::string& name,
38 const std::string& nickname) noexcept {
39 SetId(id);
40 SetName(name);
41 SetNickname(nickname);
42 }
43
48 std::uint32_t GetId() const noexcept { return id_; }
49
57 void SetId(std::uint32_t id) noexcept { id_ = id; }
58
63 std::string GetName() const noexcept { return name_; }
64
72 void SetName(const std::string& name) noexcept { name_ = name; }
73
78 std::string GetNickname() const noexcept { return nickname_; }
79
87 void SetNickname(const std::string& nickname) noexcept {
88 nickname_ = nickname;
89 }
90
102 bool operator==(const RoomGroupEntry& other) const noexcept {
103 return id_ == other.id_ && name_ == other.name_ &&
104 nickname_ == other.nickname_;
105 }
106
118 bool operator!=(const RoomGroupEntry& other) const noexcept {
119 return !(*this == other);
120 }
121
122 private:
127 std::uint32_t id_ = 0;
128
133 std::string name_;
134
139 std::string nickname_;
140};
141
147 public:
154 RoomGroupList() noexcept {}
155
160 std::vector<RoomGroupEntry> GetRoomGroups() const noexcept {
161 return room_groups_;
162 }
163
171 void SetRoomGroup(RoomGroupEntry& room_group) noexcept {
172 room_groups_.push_back(room_group);
173 }
174
179 std::uint32_t GetSelectedId() const noexcept { return selected_id_; }
180
188 void SetSelectedId(std::uint32_t id) noexcept { selected_id_ = id; }
189
190 private:
195 std::vector<RoomGroupEntry> room_groups_;
196
201 std::uint32_t selected_id_;
202};
203
204} // namespace control
205} // namespace endpoint
206} // namespace zao
207
208#endif // ZAO_ENDPOINT_CONTROL_ROOM_GROUP_LIST_HPP
ルームグループのフォーマット
Definition RoomGroupList.hpp:15
void SetNickname(const std::string &nickname) noexcept
ルームグループのニックネームを設定する。
Definition RoomGroupList.hpp:87
bool operator!=(const RoomGroupEntry &other) const noexcept
ルームグループ同士を非等値比較する。
Definition RoomGroupList.hpp:118
void SetId(std::uint32_t id) noexcept
ルームグループのIDを設定する。
Definition RoomGroupList.hpp:57
void SetName(const std::string &name) noexcept
ルームグループのネームを設定する。
Definition RoomGroupList.hpp:72
std::string GetName() const noexcept
ルームグループのネームを取得する。
Definition RoomGroupList.hpp:63
bool operator==(const RoomGroupEntry &other) const noexcept
ルームグループ同士を等値比較する
Definition RoomGroupList.hpp:102
std::uint32_t GetId() const noexcept
ルームグループのIDを取得する。
Definition RoomGroupList.hpp:48
std::string GetNickname() const noexcept
ルームグループのニックネームを取得する。
Definition RoomGroupList.hpp:78
RoomGroupEntry() noexcept
RoomGroupEntry オブジェクトをデフォルト構築する。
Definition RoomGroupList.hpp:23
RoomGroupEntry(const std::uint32_t id, const std::string &name, const std::string &nickname) noexcept
RoomGroupEntry オブジェクトを初期値付きで構築する。
Definition RoomGroupList.hpp:37
ルームグループリストのフォーマット
Definition RoomGroupList.hpp:146
std::vector< RoomGroupEntry > GetRoomGroups() const noexcept
ルームグループの動的配列を取得する。
Definition RoomGroupList.hpp:160
void SetRoomGroup(RoomGroupEntry &room_group) noexcept
ルームグループを動的配列に追加する。
Definition RoomGroupList.hpp:171
RoomGroupList() noexcept
RoomGroupList オブジェクトをデフォルト構築する。
Definition RoomGroupList.hpp:154
std::uint32_t GetSelectedId() const noexcept
選択されているルームグループのIDを取得する。
Definition RoomGroupList.hpp:179
void SetSelectedId(std::uint32_t id) noexcept
ルームグループのIDを選択設定する。
Definition RoomGroupList.hpp:188
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11