PTObjSet

@interface PTObjSet : NSObject

ObjSet is a lightweight container that can hold a collection of SDF objects.

  • Create a new name object in this object set.

    Declaration

    Objective-C

    - (PTObj *)CreateName:(NSString *)name;

    Swift

    func createName(_ name: String!) -> PTObj!

    Parameters

    name

    The name of the object to create

  • Create a new array object in this object set.

    Declaration

    Objective-C

    - (PTObj *)CreateArray;

    Swift

    func createArray() -> PTObj!
  • Create a new boolean object in this object set.

    Declaration

    Objective-C

    - (PTObj *)CreateBool:(BOOL)value;

    Swift

    func createBool(_ value: Bool) -> PTObj!

    Parameters

    value

    The boolean value of the object to create

  • Create a new dictionary object in this object set.

    Declaration

    Objective-C

    - (PTObj *)CreateDict;

    Swift

    func createDict() -> PTObj!
  • Create a new null object in this object set.

    Declaration

    Objective-C

    - (PTObj *)CreateNull;

    Swift

    func createNull() -> PTObj!
  • Create a new number object in this object set.

    Declaration

    Objective-C

    - (PTObj *)CreateNumber:(double)value;

    Swift

    func createNumber(_ value: Double) -> PTObj!

    Parameters

    The

    numeric value of the number object to create.

  • Create a new string object in this object set. The unsigned string value of the string object to create.

    Declaration

    Objective-C

    - (PTObj *)CreateString:(NSString *)value;

    Swift

    func createString(_ value: String!) -> PTObj!
  • parses a json string to create either a Dictionary or an Array in ObjSet.

    return the created object as Obj

    Declaration

    Objective-C

    - (PTObj *)CreateFromJson:(NSString *)value;

    Swift

    func create(fromJson value: String!) -> PTObj!
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()