UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
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
A class representing a configuration with various properties and methods to manipulate them.
Definition Config.h:34
NSString * getModel()
Gets the model associated with the configuration.
NSInteger getNumber()
Gets the number associated with the configuration.
NSString * description()
The configuration content sent/received from printer.
NSString * getData()
Gets the data associated with the configuration.
instancetype init()
Initializes a new instance with default values.
NSString * getName()
Gets the name associated with the configuration.
NSString * getProgramFile()
Gets the program file associated with the configuration.