1#ifndef ZAO_ENDPOINT_MONITOR_LINE_STATE_HPP_
2#define ZAO_ENDPOINT_MONITOR_LINE_STATE_HPP_
35 std::uint8_t
GetNumber() const noexcept {
return number_; }
42 void SetNumber(std::uint8_t number)
noexcept { number_ = number; }
54 void SetActive(
bool active)
noexcept { active_ = active; }
60 std::uint8_t number_ = 0;
83 active_count_ = active_count;
98 line_state_.push_back(line_state);
113 return (
static_cast<std::uint8_t
>(line_state_.size()));
122 for (
const auto line_state : line_state_) {
123 if (line_state.GetNumber() == number) {
124 return line_state.GetActive();
134 std::uint8_t active_count_ = 0;
139 std::vector<LineStateEntry> line_state_;
Line 状態を表すクラス.
Definition LineState.hpp:71
void SetLineState(const LineStateEntry &line_state) noexcept
LineStateEntry 構造体を動的配列に追加する.
Definition LineState.hpp:97
std::uint8_t GetActiveCount() const noexcept
Active Line 数を取得する.
Definition LineState.hpp:90
bool IsActive(int number) const noexcept
指定した回線がアクティブか否かを取得する.
Definition LineState.hpp:121
LineState() noexcept
LineState オブジェクトをデフォルト構築する.
Definition LineState.hpp:76
std::vector< LineStateEntry > GetLineState() const noexcept
LineStateEntry 構造体の動的配列を取得する.
Definition LineState.hpp:104
void SetActiveCount(std::uint8_t active_count) noexcept
Active Line 数を設定する.
Definition LineState.hpp:82
std::uint8_t GetMaxCount() const noexcept
最大 Line 数を取得する.
Definition LineState.hpp:112
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11
RASCOW2 Line ステータス情報のフォーマット
Definition LineState.hpp:13
std::uint8_t GetNumber() const noexcept
Line 番号を取得する.
Definition LineState.hpp:35
void SetActive(bool active) noexcept
Line の Active 状態を設定する.
Definition LineState.hpp:54
LineStateEntry(std::uint8_t number, bool is_active) noexcept
LineStateEntry オブジェクトを初期値付きで構築する.
Definition LineState.hpp:27
void SetNumber(std::uint8_t number) noexcept
Line 番号を設定する.
Definition LineState.hpp:42
LineStateEntry() noexcept
LineStateEntry オブジェクトをデフォルト構築する.
Definition LineState.hpp:19
bool GetActive() const noexcept
Active 状態を取得する.
Definition LineState.hpp:47