EL_dev_arduino 2.8.0
読み取り中…
検索中…
一致する文字列を見つけられません
公開メンバ関数 | 限定公開変数類 | 静的限定公開変数類 | 全メンバ一覧
ELOBJ クラス

EL Object [詳解]

#include <ELOBJ.h>

ELOBJ 連携図
Collaboration graph
[凡例]

公開メンバ関数

 ELOBJ ()
 コンストラクタ
 
virtual ~ELOBJ ()
 デストラクタ
 
const PDCEDT GetPDCEDT (const byte epc) const
 キー文字列からデータ取得
 
const PDCEDT SetPDCEDT (const byte epc, const PDCEDT pdcedt)
 EPCに対して、PDCEDTのを結びつける(セットと更新)
 
const PDCEDT SetPDCEDT (const byte epc, const byte *&&pdcedt)
 EPCに対して、PDCEDTのを結びつける(セットと更新)
 
const PDCEDT SetProfile (const byte epc, std::initializer_list< byte > epcs)
 Profile(0x9d, 0x9e, 0x9f)を計算してPDCとEDTを設定する
 
const PDCEDT GetProfile (const byte epc) const
 Profile(0x9d, 0x9e, 0x9f)を計算してPDC[1] + EDT[PDC]の形で返す
 
const bool hasGetProfile (const byte epc) const
 指定のEPCがGet可能かどうか
 
const bool hasSetProfile (const byte epc) const
 指定のEPCがSet可能かどうか
 
const bool hasInfProfile (const byte epc) const
 指定のEPCがINF必須かどうか
 
const PDCEDT operator[] (const byte epc) const
 配列らしいインターフェイス,const this
 
PDCEDToperator[] (const byte epc)
 配列らしいインターフェイス,not const this
 
void printAll () const
 null以外のEPCを全部出力
 

限定公開変数類

PDCEDT m_pdcedt [PDC_MAX]
 = m_pdcedt[EPC] (EPC mapped( EPC - 0x80 = 0.. 0xFF = 0x80 );
 

静的限定公開変数類

static const byte PDC_MAX = 0x80
 PDC_MAX 0xFF - 0x79
 

詳解

EL Object

構築子と解体子

◆ ELOBJ()

ELOBJ::ELOBJ ( )

コンストラクタ

戻り値
none
覚え書き

◆ ~ELOBJ()

ELOBJ::~ELOBJ ( )
virtual

デストラクタ

戻り値
none
覚え書き

関数詳解

◆ GetPDCEDT()

const PDCEDT ELOBJ::GetPDCEDT ( const byte  epc) const

キー文字列からデータ取得

引数
epcconst byte
戻り値
none
覚え書き
被呼び出し関係図:

◆ GetProfile()

const PDCEDT ELOBJ::GetProfile ( const byte  epc) const

Profile(0x9d, 0x9e, 0x9f)を計算してPDC[1] + EDT[PDC]の形で返す

引数
epcconst byte
戻り値
epcs PDCEDT
覚え書き
e.g. obj.GetProfile( 0x9d ); Format 2を解析するところがミソ
被呼び出し関係図:

◆ hasGetProfile()

const bool ELOBJ::hasGetProfile ( const byte  epc) const

指定のEPCがGet可能かどうか

引数
void
戻り値
boolean true:available, false: no EPC
覚え書き
isEmptyの逆と思っていい。プロパティ持っているかだけで判定する、EPC:0x9fは確認しない

◆ hasInfProfile()

const bool ELOBJ::hasInfProfile ( const byte  epc) const

指定のEPCがINF必須かどうか

引数
epcconst byte
戻り値
boolean true:available, false: not available
覚え書き
EPC:0x9fで判定する 毎回Profileを全部作って捜査するので少し遅い。 いくつもEPCを検索するなら、GetProfileをつかって自分で探すことをお勧めする。
呼び出し関係図:

◆ hasSetProfile()

const bool ELOBJ::hasSetProfile ( const byte  epc) const

指定のEPCがSet可能かどうか

引数
epcconst byte
戻り値
boolean true:available, false: not available
覚え書き
EPC:0x9eで判定する 毎回Profileを全部作って捜査するので少し遅い。 いくつもEPCを検索するなら、GetProfileをつかって自分で探すことをお勧めする。 No checkでEPCにセットすると、新規作成するのできちんとチェックしてからセットしたい
呼び出し関係図:

◆ operator[]() [1/2]

PDCEDT & ELOBJ::operator[] ( const byte  epc)

配列らしいインターフェイス,not const this

引数
epcconst byte
戻り値
none
覚え書き

◆ operator[]() [2/2]

const PDCEDT ELOBJ::operator[] ( const byte  epc) const

配列らしいインターフェイス,const this

引数
epcconst byte
戻り値
none
覚え書き

◆ printAll()

void ELOBJ::printAll ( ) const

null以外のEPCを全部出力

戻り値
none
覚え書き
呼び出し関係図:
被呼び出し関係図:

◆ SetPDCEDT() [1/2]

const PDCEDT ELOBJ::SetPDCEDT ( const byte  epc,
const byte *&&  pdcedt 
)

EPCに対して、PDCEDTのを結びつける(セットと更新)

引数
epc
pdcedt
戻り値
none
覚え書き
pdcedtがconst byte*型のときに呼ばれる

◆ SetPDCEDT() [2/2]

const PDCEDT ELOBJ::SetPDCEDT ( const byte  epc,
const PDCEDT  pdcedt 
)

EPCに対して、PDCEDTのを結びつける(セットと更新)

引数
epc
pdcedt
戻り値
none
覚え書き
pdcedtがPDCEDT型のときに呼ばれる
被呼び出し関係図:

◆ SetProfile()

const PDCEDT ELOBJ::SetProfile ( const byte  epc,
std::initializer_list< byte >  epcs 
)

Profile(0x9d, 0x9e, 0x9f)を計算してPDCとEDTを設定する

引数
epcsstd::initializer_list<byte> : epc list
戻り値
none
覚え書き
e.g. obj.SetProfile( {0x80, 0x81, 0x88} ) プロパティ数16以上(PDC含めると17Byte以上)のとき、Format 2
呼び出し関係図:
被呼び出し関係図:

メンバ詳解

◆ m_pdcedt

PDCEDT ELOBJ::m_pdcedt[PDC_MAX]
protected

= m_pdcedt[EPC] (EPC mapped( EPC - 0x80 = 0.. 0xFF = 0x80 );

◆ PDC_MAX

const byte ELOBJ::PDC_MAX = 0x80
staticprotected

PDC_MAX 0xFF - 0x79


このクラス詳解は次のファイルから抽出されました: