#include "JsonSDK.h"#include "JsonMng.h"#include "RfidMonitor.h"#include "OdvMonitor.h"#include "PrinterMonitor.h"#include "SettingsReadWrite.h"#include "JsonConfig.h"
函式 | |
| void | MessengerGet (void *ptrComm, COMM_TYP commTyp, int maxInputMsgCapacity, bool usingDataPort) |
| 建立一個頻道,用於發送/接收管理訊息,並指定最大容量。 | |
| void | MessengerRelease () |
| 釋放訊息傳輸介面資源 | |
| void | MessengerSendMsg (char *strCommand, char *strContent) |
| 向印表機發送管理指令和資料/內容。 | |
| void | MessengerReadNextMsg (const char **strNextMsg) |
| 讀取已經從印表機非同步接收的下一則訊息。 | |
| void | MessengerSendMsgAndWaitForResponse (char *strCommand, char *strContent, int maxWaitTimeSecs, const char **strResponse) |
| 將管理命令和數據/內容發送到印表機,並等待 maxWaitTimeSecs 秒的回應。 | |
| int | MessengerUnreadMsgCount () |
| 獲取未讀消息的數量。 | |
| void | RfidMonitorConnection (char *lpAddress) |
| 使用網路介面 (NET Interface) 連接印表機以啟用 RFID 監控功能。 | |
| void | OdvMonitorConnection (char *lpAddress) |
| 使用網路介面 (NET Interface) 連接印表機以啟用 ODV 監控功能。 | |
| void | PrinterMonitorConnection (char *lpAddress, INFO_TYP InfoTyp) |
| 使用網路介面 (NET Interface) 連接印表機以啟用印表機監控功能。 | |
| void | GetPrinterInfo (stPrinterInfo *pPrtInfo, INFO_TYP InfoTyp) |
| 獲取印表機功能的相關信息。 | |
| bool | GetRfidReportListening () |
| 獲取 RFID 報告監聽的標誌。 | |
| void | SetRfidReportListening (bool value) |
| 設置 RFID 報告監聽的標誌。 | |
| bool | GetOdvReportListening () |
| 獲取 ODV 報告監聽的標誌。 | |
| void | SetOdvReportListening (bool value) |
| 設置 ODV 報告監聽的標誌。 | |
| void | RfidMonitorDispose () |
| 釋放 RFID 監控資源。 | |
| void | OdvMonitorDispose () |
| 釋放 ODV 監控資源。 | |
| void | PrinterMonitorDispose (INFO_TYP InfoTyp) |
| 釋放印表機監控資源。 | |
| void | SetRfidReportCallback (void callback(const RfidReport &report)) |
| 設置一個回調函數來獲取 RFID 報告。 | |
| void | SetOdvReportCallback (void callback(const OdvReport &report)) |
| 設置一個回調函數來獲取 ODV 報告。 | |
| void | SetEngineStatusListening (bool value) |
| 設置印表機報告監聽引擎狀態的標誌。 | |
| void | SetDisplayStatusListening (bool value) |
| 設置印表機報告監聽螢幕狀態的標誌。 | |
| void | SetAlertStatusListening (bool value) |
| 設置印表機報告監聽警報狀態的標誌。 | |
| bool | GetEngineStatusListening () |
| 獲取引擎狀態監聽的標誌。 | |
| bool | GetDisplayStatusListening () |
| 獲取顯示狀態監聽的標誌。 | |
| bool | GetAlertStatusListening () |
| 獲取警報狀態監聽的標誌。 | |
| void | SetEngineStatusCallback (void callback(const std::string &engineState)) |
| 設置印表機報告監聽警報狀態的標誌。 | |
| void | SetDisplayStatusCallback (void callback(const std::vector< std::string > &newDisplayText)) |
| 設置印表機報告監聽螢幕狀態的標誌。 | |
| void | SetAlertStatusCallback (void callback(const std::vector< std::string > &alert)) |
| 設置一個回傳數來獲取警報狀態。 | |
| char * | GetPrinterAllValues (void *ptrComm, COMM_TYP commTyp, bool usingDataPort) |
| 獲取印表機的所有設置。 | |
| char * | GetPrinterValue (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key) |
| 獲取印表機的單一設置。 | |
| char * | GetPrinterValues (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const std::vector< std::string > &keys) |
| 獲取印表機的多個設置。 | |
| bool | SetPrinterValue (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key, const char *value) |
| 設定印表機的單一設置。 | |
| bool | SetPrinterValues (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, std::map< std::string, std::string > *keysToSet) |
| 設定印表機的多個設置。 | |
| char * | GetPrinterProperties (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *key) |
| 獲取印表機的單一屬性。 | |
| char * | GetPrinterPropertiesEx (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, const char *keys[], size_t count) |
| 獲取印表機的多個屬性。 | |
| char * | GetPrinterAllProperties (void *ptrComm, COMM_TYP commTyp, bool usingDataPort) |
| 獲取印表機的所有屬性。 | |
| void | FreeString (char *str) |
| 釋放字串資源。 | |
| char * | GetPrinterConfig (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, int CfgNumber) |
| 獲取印表機的單一組態設定。 | |
| bool | SetPrinterConfig (void *ptrComm, COMM_TYP commTyp, bool usingDataPort, char *pConfig) |
| 設定印表機的單一組態設定。 | |
| char * | GetPrinterAllConfig (void *ptrComm, COMM_TYP commTyp, bool usingDataPort) |
| 獲取印表機的所有組態設定。 | |
變數 | |
| static JsonMessenger | gJsonMessenger |
| static RfidMonitor | gRfidMonitor |
| static RfidReport | gRfidReport |
| static OdvMonitor | gOdvMonitor |
| static PrinterMonitor | gPrinterMonitor_Rfid |
| static PrinterMonitor | gPrinterMonitor_Odv |
| static PrinterMonitor | gPrinterMonitor |
| static std::string | AllMsg |
| void FreeString | ( | char * | str | ) |
| bool GetAlertStatusListening | ( | ) |
獲取警報狀態監聽的標誌。
| bool GetDisplayStatusListening | ( | ) |
獲取顯示狀態監聽的標誌。
| bool GetEngineStatusListening | ( | ) |
獲取引擎狀態監聽的標誌。
| bool GetOdvReportListening | ( | ) |
獲取 ODV 報告監聽的標誌。
| char * GetPrinterAllConfig | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort ) |
獲取印表機的所有組態設定。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| char * GetPrinterAllProperties | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort ) |
獲取印表機的所有屬性。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| char * GetPrinterAllValues | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort ) |
獲取印表機的所有設置。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| char * GetPrinterConfig | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| int | CfgNumber ) |
獲取印表機的單一組態設定。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | CfgNumber | : 組態設定索引值, 範圍是 0~8 |
| void GetPrinterInfo | ( | stPrinterInfo * | pPrtInfo, |
| INFO_TYP | InfoTyp ) |
獲取印表機功能的相關信息。
| [out] | pPrtInfo | : 用來存儲印表機信息的結構體 |
| [in] | InfoTyp | : 設置 RFID 或 ODV 信息的類型 |
| char * GetPrinterProperties | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| const char * | key ) |
獲取印表機的單一屬性。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | key | 印表機設置的一個鍵值 |
| char * GetPrinterPropertiesEx | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| const char * | keys[], | ||
| size_t | count ) |
獲取印表機的多個屬性。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | keyProps | 印表機設置的多個鍵值 |
| [in] | keyCount | 鍵值數量 |
| char * GetPrinterValue | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| const char * | key ) |
獲取印表機的單一設置。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | key | 印表機設置的一個鍵值 |
| char * GetPrinterValues | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| const std::vector< std::string > & | keys ) |
獲取印表機的多個設置。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | keys | 印表機設置的多個鍵值 |
| bool GetRfidReportListening | ( | ) |
獲取 RFID 報告監聽的標誌。
| void MessengerGet | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| int | maxInputMsgCapacity, | ||
| bool | usingDataPort ) |
建立一個頻道,用於發送/接收管理訊息,並指定最大容量。
| [out] | ptrComm | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | maxInputMsgCapacity | : 最大訊息輸入容量, 預設 MAX_INPUT_MSG_CAPACITY(20) |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| void MessengerReadNextMsg | ( | const char ** | strNextMsg | ) |
讀取已經從印表機非同步接收的下一則訊息。
| [out] | strNextMsg | : 用來存儲下一個返回消息的緩衝區 |
| void MessengerRelease | ( | ) |
釋放訊息傳輸介面資源
| void MessengerSendMsg | ( | char * | strCommand, |
| char * | strContent ) |
向印表機發送管理指令和資料/內容。
| [in] | strCommand | : 管理指令字串 |
| [in] | strContent | : 管理資料/內容字串 |
| void MessengerSendMsgAndWaitForResponse | ( | char * | strCommand, |
| char * | strContent, | ||
| int | maxWaitTimeSecs, | ||
| const char ** | strResponse ) |
將管理命令和數據/內容發送到印表機,並等待 maxWaitTimeSecs 秒的回應。
| [in] | strCommand | : 一個管理命令字符串 |
| [in] | strContent | : 一個管理數據/內容字符串 |
| [in] | maxWaitTimeSecs | : 最大等待時間 |
| [out] | strResponse | : 用來存儲 JSON 字符串回應的緩衝區 |
| int MessengerUnreadMsgCount | ( | ) |
| void OdvMonitorConnection | ( | char * | lpAddress | ) |
使用網路介面 (NET Interface) 連接印表機以啟用 ODV 監控功能。
| [in] | lpAddress | : IP 位址 |
| void OdvMonitorDispose | ( | ) |
釋放 ODV 監控資源。
| void PrinterMonitorConnection | ( | char * | lpAddress, |
| INFO_TYP | InfoTyp ) |
使用網路介面 (NET Interface) 連接印表機以啟用印表機監控功能。
| [in] | lpAddress | : IP 位址 |
| void PrinterMonitorDispose | ( | INFO_TYP | InfoTyp | ) |
釋放印表機監控資源。
| void RfidMonitorConnection | ( | char * | lpAddress | ) |
使用網路介面 (NET Interface) 連接印表機以啟用 RFID 監控功能。
| [in] | lpAddress | : IP 位址 |
| void RfidMonitorDispose | ( | ) |
釋放 RFID 監控資源。
| void SetAlertStatusCallback | ( | void | callbackconst std::vector< std::string > &alert | ) |
設置一個回傳數來獲取警報狀態。
| [in] | callback | :a callback function |
設置印表機報告監聽警報狀態的標誌。
| [in] | callback | :回調函數 |
| void SetAlertStatusListening | ( | bool | value | ) |
設置印表機報告監聽警報狀態的標誌。
| [in] | value | : 用來設置印表機報告監聽的標誌 |
| void SetDisplayStatusCallback | ( | void | callbackconst std::vector< std::string > &newDisplayText | ) |
設置印表機報告監聽螢幕狀態的標誌。
| [in] | callback | :回調函數 |
| void SetDisplayStatusListening | ( | bool | value | ) |
設置印表機報告監聽螢幕狀態的標誌。
| [in] | value | : 用來設置印表機報告監聽的標誌 |
| void SetEngineStatusCallback | ( | void | callbackconst std::string &engineState | ) |
設置印表機報告監聽警報狀態的標誌。
| [in] | callback | :回調函數 |
| void SetEngineStatusListening | ( | bool | value | ) |
設置印表機報告監聽引擎狀態的標誌。
| [in] | value | : 用來設置印表機報告監聽的標誌 |
| void SetOdvReportCallback | ( | void | callbackconst OdvReport &report | ) |
設置一個回調函數來獲取 ODV 報告。
| [in] | callback | :回調函數 |
| void SetOdvReportListening | ( | bool | value | ) |
設置 ODV 報告監聽的標誌。
| [in] | value | : 用來設置 ODV 報告監聽的標誌 |
| bool SetPrinterConfig | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| char * | pConfig ) |
設定印表機的單一組態設定。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | pConfig | : 組態設定 |
| bool SetPrinterValue | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| const char * | key, | ||
| const char * | value ) |
設定印表機的單一設置。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | key | 印表機設置的一個鍵值 |
| [in] | value | 一個印表機設置值 |
| bool SetPrinterValues | ( | void * | ptrComm, |
| COMM_TYP | commTyp, | ||
| bool | usingDataPort, | ||
| std::map< std::string, std::string > * | keysToSet ) |
設定印表機的多個設置。
| [in] | commPtr | : 介面指標 |
| [in] | commTyp | : 介面種類 |
| [in] | usingDataPort | : 使用資料埠傳輸, 預設是 false |
| [in] | keysToSet | 印表機設置的多個鍵值 |
| void SetRfidReportCallback | ( | void | callbackconst RfidReport &report | ) |
設置一個回調函數來獲取 RFID 報告。
| [in] | callback | :回調函數 |
| void SetRfidReportListening | ( | bool | value | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |