UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
Config.h
1//
2// Config.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/4/19.
6//
7
8#ifndef Config_h
9#define Config_h
10
11
12#endif /* Config_h */
13
14#import <Foundation/Foundation.h>
15#import <UniPRT/JsonStringTokenizer.h>
16
33@interface Config : NSObject
34
35// Initializers
36
56- (instancetype)initWithCfgContent:(NSString *)cfgContent;
57
74- (instancetype)init;
75
76// Methods
77
94- (NSString *)description;
95
124- (NSInteger)getNumber;
125
154- (void)setNumber:(int)iNumber;
155
184- (NSString *)getModel;
185
214- (void)setModel:(NSString *)strModel;
215
250- (NSString *)getName;
251
286- (void)setName:(NSString *)strName;
287
322- (NSString *)getProgramFile;
323
358- (void)setProgramFile:(NSString *)strProgramFile;
359
388- (NSString *)getData;
389
418- (void)setData:(NSString *)strData;
419
420@end
表示配置的類,具有各種屬性和方法來操作它們。
Definition Config.h:34
NSString * getModel()
獲取與配置關聯的型號。
NSInteger getNumber()
獲取與配置關聯的編號。
NSString * description()
從打印機發送/接收的配置內容。
NSString * getData()
獲取與配置關聯的數據。
instancetype init()
使用默認值初始化一個新實例。
NSString * getName()
獲取與配置關聯的名稱。
NSString * getProgramFile()
獲取與配置關聯的程序文件。