UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
JsonConfig.h
1//
2// JsonConfig.h
3// sdk_json_Objective-C
4//
5// Created by Realbuber on 2024/4/19.
6//
7
8#ifndef JsonConfig_h
9#define JsonConfig_h
10
11
12#endif /* JsonConfig_h */
13
14#import <Foundation/Foundation.h>
15#import <UniPRT/Config.h>
16#import <UniPRT/JsonComm.h>
17// Assuming JsonComm and Config are already translated Objective-C classes
18
19@class JsonComm;
20@class Config;
21
38@interface JsonConfig : NSObject
39
59- (instancetype)initWithTcpComm:(id)connection;
60
80- (instancetype)initWithJsonComm:(JsonComm *)mgmtComm;
81
101- (instancetype)initWithCommDescriptor:(NSString *)commDescriptor;
102
103// Destructor
114//- (void)dealloc;
115
116// Methods
117
134- (NSArray<Config *> *)getAllConfig;
135
155- (Config *)getConfigWithNumber:(int)cfgNumber;
156
176- (BOOL)setConfig:(Config *)pCfg;
177
178@end
A class representing a configuration with various properties and methods to manipulate them.
Definition Config.h:34
A class for managing configuration through JSON communication.
Definition JsonConfig.h:39
NSArray< Config * > * getAllConfig()
Destructor for the JsonConfig object.