blob: 2ba28d88a80822a2fb7ed1d1c3efa1725efd1a2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
#import "LocalObject.h"
NS_ASSUME_NONNULL_BEGIN
ICEIMPL_API @interface ICEProperties : ICELocalObject
-(nonnull NSString*) getProperty:(NSString*)key;
-(nonnull NSString*) getPropertyWithDefault:(NSString*)key value:(NSString*)value;
-(int32_t) getPropertyAsInt:(NSString*)key;
-(int32_t) getPropertyAsIntWithDefault:(NSString*)key value:(int32_t)value NS_SWIFT_NAME(getPropertyAsIntWithDefault(key:value:));
-(nonnull NSArray<NSString*>*) getPropertyAsList:(NSString* _Nonnull)key;
-(nonnull NSArray<NSString*>*) getPropertyAsListWithDefault:(NSString* _Nonnull)key value:(NSArray<NSString*>* _Nonnull)value NS_SWIFT_NAME(getPropertyAsListWithDefault(key:value:));
-(nonnull NSDictionary<NSString*, NSString*>*) getPropertiesForPrefix:(NSString* _Nonnull)prefix NS_SWIFT_NAME(getPropertiesForPrefix(_:));
-(BOOL) setProperty:(NSString*)key value:(NSString*)value error:(NSError**)error;
-(nonnull NSArray<NSString*>*) getCommandLineOptions;
-(nullable NSArray<NSString*>*) parseCommandLineOptions:(NSString*)prefix options:(NSArray<NSString*>*)options error:(NSError* _Nullable * _Nullable)error;
-(nullable NSArray<NSString*>*) parseIceCommandLineOptions:(NSArray<NSString*>*)options error:(NSError**)error;
-(BOOL) load:(NSString*)file error:(NSError* _Nullable * _Nullable)error;
-(nonnull ICEProperties*) clone;
@end
#ifdef __cplusplus
@interface ICEProperties()
@property (nonatomic, readonly) std::shared_ptr<Ice::Properties> properties;
@end
#endif
NS_ASSUME_NONNULL_END
|