関数win_channelTableContents_periods_duplicate マニュアル

(The documentation of function win_channelTableContents_periods_duplicate)

Last Update: 2025/10/14


◆機能・用途(Purpose)

WINシステムのチャンネルテーブルファイルから読み込んだ2つの行の情報間で 有効期間が重複しているか否かを判定する。
Examine whether the effective periods of two lines in a channel table file of the WIN system.


◆形式(Format)

#include <win/channel.h>
inline _Bool win_channelTableContents_periods_duplicate
(const struct win_channelTableContents data1,
 const struct win_channelTableContents data2)


◆引数(Arguments)

data1 チャンネルテーブルファイルから読み込んだ1つの行の中身。
The content of one line of a channel table file.
data2 チャンネルテーブルファイルから読み込んだ別の行の中身。
The content of another line of a channel table file.


◆戻り値(Return value)

引数data1とdata2で有効期間が重複する場合はtrue、重複しない場合はfalse。 チャンネルコードや観測点・成分がdata1とdata2で等しいか否かは問題にせず、 有効期間のみの重複をチェックする。
true if the effective periods of the data given by arguments data1 and data2 duplicate, false otherwise. Just the duplicate of the effective periods is examined, no matter whether the channel codes, stations, and components are equal between data1 and data2.


◆使用例(Example)

struct win_channelTableContents data1,data2;
if(data1.channelCode==data2.channelCode && win_channelTableContents_periods_duplicate(data1,data2)){
     printf("Periods duplicated for channel %04X", data1.channelCode);
}