CRSOperationParameter
Objective-C
@interface CRSOperationParameter : NSObject <CRSIdentifiable>
Swift
class CRSOperationParameter : NSObject, CRSIdentifiable
Operation Parameter
-
Name
Declaration
Objective-C
@property (nonatomic, strong) NSString *name;
Swift
var name: String! { get set }
-
Value
Declaration
Objective-C
@property (nonatomic) double value;
Swift
var value: Double { get set }
-
Value Text
Declaration
Objective-C
@property (nonatomic, strong) NSString *valueText;
Swift
var valueText: String! { get set }
-
File Name
Declaration
Objective-C
@property (nonatomic, strong) NSString *fileName;
Swift
var fileName: String! { get set }
-
Identifiers
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<CRSIdentifier *> *identifiers;
Swift
var identifiers: NSMutableArray! { get set }
-
Commonly encountered operation parameters
Declaration
Objective-C
@property (nonatomic, strong) CRSOperationParameters *parameter;
Swift
var parameter: CRSOperationParameters! { get set }
-
Create
Declaration
Objective-C
+ (CRSOperationParameter *)create;
Swift
class func create() -> CRSOperationParameter!
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name andValue:(double)value;
Swift
init!(name: String!, andValue value: Double)
Parameters
name
name
value
value
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name andValueText:(NSString *)value;
Swift
init!(name: String!, andValueText value: String!)
Parameters
name
name
value
value
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithParameter:(CRSOperationParameters *)parameter andValue:(double)value;
Swift
init!(parameter: CRSOperationParameters!, andValue value: Double)
Parameters
parameter
operation parameter
value
value
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithParameter:(CRSOperationParameters *)parameter andValueText:(NSString *)value;
Swift
init!(parameter: CRSOperationParameters!, andValueText value: String!)
Parameters
parameter
operation parameter
value
value
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithParameter:(CRSOperationParameters *)parameter andValue:(double)value andUnit:(CRSUnit *)unit;
Swift
init!(parameter: CRSOperationParameters!, andValue value: Double, andUnit unit: CRSUnit!)
Parameters
parameter
operation parameter
value
value
unit
unit
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithParameter:(CRSOperationParameters *)parameter andValueText:(NSString *)value andUnit:(CRSUnit *)unit;
Swift
init!(parameter: CRSOperationParameters!, andValueText value: String!, andUnit unit: CRSUnit!)
Parameters
parameter
operation parameter
value
value
unit
unit
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)initWithName:(NSString *)name andFileName:(NSString *)fileName;
Swift
init!(name: String!, andFileName fileName: String!)
Parameters
name
name
fileName
file name
Return Value
new instance
-
Has a unit
Declaration
Objective-C
- (BOOL)hasUnit;
Swift
func hasUnit() -> Bool
Return Value
true if has unit
-
Is a parameter file
Declaration
Objective-C
- (BOOL)isFile;
Swift
func isFile() -> Bool
Return Value
true if file
-
Is a commonly known parameter type
Declaration
Objective-C
- (BOOL)hasParameter;
Swift
func hasParameter() -> Bool
Return Value
true if has common parameter type
-
Update the commonly known parameter type using the name
Declaration
Objective-C
- (void)updateParameter;
Swift
func updateParameter()