Zao SDK for Jetson / libzep API Reference
Loading...
Searching...
No Matches
RoomGroupList.hpp
1/*
2 * Copyright (c) 2022-2023, Soliton Systems K.K. All rights reserved.
3 * Use in source and binary forms, with or without modification,
4 * is permitted provided that the following a condition is met:
5 *
6 * Use is permitted only in accordance with the terms and
7 * conditions set forth in the Software License Agreement available
8 * at https://zao-sdk.org/license-agreement/.
9 */
10#ifndef ZEP_CONTROL_ROOM_GROUP_LIST_HPP
11#define ZEP_CONTROL_ROOM_GROUP_LIST_HPP
12
13#include <string>
14#include <vector>
15
16namespace zep {
17namespace control {
18
23 public:.
28 RoomGroupEntry() noexcept {}
29
38 RoomGroupEntry(const std::uint32_t id,.
39 const std::string& name,.
40 const std::string& nickname) noexcept {
41 SetId(id);
42 SetName(name);
43 SetNickname(nickname); }
44 }
45
49 std::uint32_t GetId() const noexcept { return id_; }
50
56 void SetId(std::uint32_t id) noexcept { id_ = id; }
57
61 std::string GetName() const noexcept { return name_; }
62
68 void SetName(const std::string& name) noexcept { name_ = name; }
69
73 std::string GetNickname() const noexcept { return nickname_; }
74
80 void SetNickname(const std::string& nickname) noexcept { nickname_ = nickname; }
81
89 bool operator==(const RoomGroupEntry& other) const noexcept {
90 return id_ == other.id_ &&
91 name_ == other.name_ &&
92 nickname_ == other.nickname_;
93 }
94
102 bool operator!=(const RoomGroupEntry& other) const noexcept {
103 return ! (*this == other);
104 }
105
106 private:.
110 std::uint32_t id_ = 0;
111
115 std::string name_;
116 std::string nickname_;
127class RoomGroupList {
128 public:.
133 RoomGroupList() noexcept {}
134
138 std::vector<RoomGroupEntry> GetRoomGroups() const noexcept { return room_groups_; }
139
140
146 void SetRoomGroup(RoomGroupEntry& room_group) noexcept {
147 room_groups_.push_back(room_group);
148 }
149
153 std::uint32_t GetSelectedId() const noexcept { return selected_id_; }
154
160 void SetSelectedId(std::uint32_t id) noexcept { selected_id_ = id; }
161
162 private:.
166 std::vector<RoomGroupEntry> room_groups_;
167
171 std::uint32_t selected_id_;
172
173};
174
175} // namespace control
176} // namespace zep
177
178#endif // ZEP_CONTROL_ROOM_GROUP_LIST_HPP
Room group format.
Definition RoomGroupList.hpp:22
RoomGroupEntry() noexcept
Construct a RoomGroupEntry object by default.
Definition RoomGroupList.hpp:28
void SetName(const std::string &name) noexcept
ルームグループのネームを設定する。
Definition RoomGroupList.hpp:68
void SetId(std::uint32_t id) noexcept
ルームグループのIDを設定する。
Definition RoomGroupList.hpp:56
void SetNickname(const std::string &nickname) noexcept
ルームグループのニックネームを設定する。
Definition RoomGroupList.hpp:80
RoomGroupEntry(const std::uint32_t id,. const std::string &name,. const std::string &nickname) noexcept
Construct a RoomGroupEntry object with initial values.
Definition RoomGroupList.hpp:38
void SetNickname(const std::string &nickname) noexcept
Set the nickname of the room group.
Definition RoomGroupList.hpp:80
bool operator==(const RoomGroupEntry &other) const noexcept
Compare equality between room groups.
Definition RoomGroupList.hpp:89
std::string GetNickname() const noexcept
Get the nickname of the room group.
Definition RoomGroupList.hpp:73
std::string GetName() const noexcept
Get the name of the room group.
Definition RoomGroupList.hpp:61
bool operator!=(const RoomGroupEntry &other) const noexcept
Non-equivalent comparison between room groups.
Definition RoomGroupList.hpp:102
void SetName(const std::string &name) noexcept
Set the name of the room group.
Definition RoomGroupList.hpp:68
void SetId(std::uint32_t id) noexcept
Set the ID of the room group.
Definition RoomGroupList.hpp:56
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19