EL_dev_arduino 2.2.1
読み取り中…
検索中…
一致する文字列を見つけられません
/Users/sugimura/EL_dev_arduino/ELOBJ.h
[詳解]
1
8#ifndef __ELOBJ_H__
9#define __ELOBJ_H__
10#pragma once
11
12// configure
13#include <Arduino.h>
14
15// auto config
16#ifndef Arduino_h
17#define byte unsigned char
18#include <iostream>
19using std::cout;
20using std::dec;
21using std::endl;
22using std::hex;
23using std::move;
24#endif
25
26
31class PDCEDT
32{
33protected:
34 byte *m_pdcedt;
35 byte length;
36
37public:
38 PDCEDT();
39 PDCEDT(const PDCEDT& val);
40 PDCEDT(const byte* val);
41 virtual ~PDCEDT();
42 const PDCEDT operator=(const PDCEDT val);
43 const byte* operator=(const byte* val);
44 operator byte* () const;
45 void print(void) const;
46};
47
52class ELOBJ
53{
54 // メンバ変数定義
55public:
56 const static byte PDC_MAX = 0x80;
57
58protected:
60
61 // member function
62public:
63 ELOBJ(); // 構築
64 virtual ~ELOBJ(); // 消滅
65
66 // データ取得
67 const PDCEDT GetPDCEDT(const byte epc) const;
68 const PDCEDT SetPDCEDT(const byte epc, const PDCEDT pdcedt);
69 const PDCEDT SetPDCEDT(const byte epc, const byte*&& pdcedt);
70
71 // 配列らしいインターフェイス
72 const PDCEDT operator[](const byte epc) const;
73 PDCEDT& operator[](const byte epc);
74
75 // 状態表示系
76 void printAll() const; // all print edt
77};
78
79#endif
81// EOF
EL Object
Definition: ELOBJ.h:53
const PDCEDT SetPDCEDT(const byte epc, const PDCEDT pdcedt)
EPCに対して、PDCEDTのを結びつける(セットと更新)
Definition: ELOBJ.cpp:202
void printAll() const
null以外のEPCを全部出力
Definition: ELOBJ.cpp:251
virtual ~ELOBJ()
デストラクタ
Definition: ELOBJ.cpp:180
ELOBJ()
コンストラクタ
Definition: ELOBJ.cpp:172
PDCEDT m_pdcedt[PDC_MAX]
= m_pdcedt[EPC] (EPC mapped( EPC - 0x80 = 0.. 0xFF = 0x80 );
Definition: ELOBJ.h:59
const PDCEDT operator[](const byte epc) const
配列らしいインターフェイス,const this
Definition: ELOBJ.cpp:229
static const byte PDC_MAX
PDC_MAX 0xFF - 0x79
Definition: ELOBJ.h:56
const PDCEDT GetPDCEDT(const byte epc) const
キー文字列からデータ取得
Definition: ELOBJ.cpp:189
PDC and EDT in ELOBJ
Definition: ELOBJ.h:32
virtual ~PDCEDT()
デストラクタ
Definition: ELOBJ.cpp:49
void print(void) const
デバグ用の標準出力
Definition: ELOBJ.cpp:121
const PDCEDT operator=(const PDCEDT val)
operator=
Definition: ELOBJ.cpp:64
byte * m_pdcedt
PDC(1 Byte) + EDT(n Byte)
Definition: ELOBJ.h:34
PDCEDT()
コンストラクタ
Definition: ELOBJ.cpp:15
byte length
length for m_pdcedt
Definition: ELOBJ.h:35
byte * pdcedt
Definition: main.cpp:56