From 3b6f0ae2ca166f18f24c2621cc668cef5f42b151 Mon Sep 17 00:00:00 2001 From: Klemens Muthmann Date: Thu, 10 Oct 2024 14:03:26 +0200 Subject: [PATCH] Add generated CoreData files --- .../13.xcdatamodel/contents | 16 ++-- .../Generated/AltitudeMO+CoreDataClass.swift | 15 +++ .../AltitudeMO+CoreDataProperties.swift | 23 +++++ .../Generated/EventMO+CoreDataClass.swift | 15 +++ .../EventMO+CoreDataProperties.swift | 24 +++++ .../GeoLocationMO+CoreDataClass.swift | 15 +++ .../GeoLocationMO+CoreDataProperties.swift | 28 ++++++ .../MeasurementMO+CoreDataClass.swift | 15 +++ .../MeasurementMO+CoreDataProperties.swift | 96 +++++++++++++++++++ .../Generated/TrackMO+CoreDataClass.swift | 15 +++ .../TrackMO+CoreDataProperties.swift | 93 ++++++++++++++++++ .../UploadSession+CoreDataClass.swift | 15 +++ .../UploadSession+CoreDataProperties.swift | 59 ++++++++++++ .../Generated/UploadTask+CoreDataClass.swift | 15 +++ .../UploadTask+CoreDataProperties.swift | 26 +++++ 15 files changed, 462 insertions(+), 8 deletions(-) create mode 100644 Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataProperties.swift create mode 100644 Sources/DataCapturing/Model/Generated/EventMO+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/EventMO+CoreDataProperties.swift create mode 100644 Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataProperties.swift create mode 100644 Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataProperties.swift create mode 100644 Sources/DataCapturing/Model/Generated/TrackMO+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/TrackMO+CoreDataProperties.swift create mode 100644 Sources/DataCapturing/Model/Generated/UploadSession+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/UploadSession+CoreDataProperties.swift create mode 100644 Sources/DataCapturing/Model/Generated/UploadTask+CoreDataClass.swift create mode 100644 Sources/DataCapturing/Model/Generated/UploadTask+CoreDataProperties.swift diff --git a/Sources/DataCapturing/Model/CyfaceModel.xcdatamodeld/13.xcdatamodel/contents b/Sources/DataCapturing/Model/CyfaceModel.xcdatamodeld/13.xcdatamodel/contents index b0c08e2..fd55295 100644 --- a/Sources/DataCapturing/Model/CyfaceModel.xcdatamodeld/13.xcdatamodel/contents +++ b/Sources/DataCapturing/Model/CyfaceModel.xcdatamodeld/13.xcdatamodel/contents @@ -1,17 +1,17 @@ - - + + - + - + @@ -21,7 +21,7 @@ - + @@ -32,18 +32,18 @@ - + - + - + diff --git a/Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataClass.swift new file mode 100644 index 0000000..9ff833a --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// AltitudeMO+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(AltitudeMO) +public class AltitudeMO: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataProperties.swift new file mode 100644 index 0000000..9dc48e2 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/AltitudeMO+CoreDataProperties.swift @@ -0,0 +1,23 @@ +// +// AltitudeMO+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension AltitudeMO { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "Altitude") + } + + @NSManaged public var altitude: Double + @NSManaged public var time: Date? + @NSManaged public var track: TrackMO? + +} diff --git a/Sources/DataCapturing/Model/Generated/EventMO+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/EventMO+CoreDataClass.swift new file mode 100644 index 0000000..2e76fb5 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/EventMO+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// EventMO+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(EventMO) +public class EventMO: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/EventMO+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/EventMO+CoreDataProperties.swift new file mode 100644 index 0000000..5f4640a --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/EventMO+CoreDataProperties.swift @@ -0,0 +1,24 @@ +// +// EventMO+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension EventMO { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "Event") + } + + @NSManaged public var time: Date? + @NSManaged public var type: Int16 + @NSManaged public var value: String? + @NSManaged public var measurement: MeasurementMO? + +} diff --git a/Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataClass.swift new file mode 100644 index 0000000..9ec2a4c --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// GeoLocationMO+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(GeoLocationMO) +public class GeoLocationMO: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataProperties.swift new file mode 100644 index 0000000..472e381 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/GeoLocationMO+CoreDataProperties.swift @@ -0,0 +1,28 @@ +// +// GeoLocationMO+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension GeoLocationMO { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "GeoLocation") + } + + @NSManaged public var accuracy: Double + @NSManaged public var altitude: Double + @NSManaged public var lat: Double + @NSManaged public var lon: Double + @NSManaged public var speed: Double + @NSManaged public var time: Date? + @NSManaged public var verticalAccuracy: Double + @NSManaged public var track: TrackMO? + +} diff --git a/Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataClass.swift new file mode 100644 index 0000000..d1bf71a --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// MeasurementMO+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(MeasurementMO) +public class MeasurementMO: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataProperties.swift new file mode 100644 index 0000000..3285da7 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/MeasurementMO+CoreDataProperties.swift @@ -0,0 +1,96 @@ +// +// MeasurementMO+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension MeasurementMO { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "Measurement") + } + + @NSManaged public var identifier: Int64 + @NSManaged public var synchronizable: Bool + @NSManaged public var synchronized: Bool + @NSManaged public var time: Date? + @NSManaged public var events: NSOrderedSet? + @NSManaged public var tracks: NSOrderedSet? + +} + +// MARK: Generated accessors for events +extension MeasurementMO { + + @objc(insertObject:inEventsAtIndex:) + @NSManaged public func insertIntoEvents(_ value: EventMO, at idx: Int) + + @objc(removeObjectFromEventsAtIndex:) + @NSManaged public func removeFromEvents(at idx: Int) + + @objc(insertEvents:atIndexes:) + @NSManaged public func insertIntoEvents(_ values: [EventMO], at indexes: NSIndexSet) + + @objc(removeEventsAtIndexes:) + @NSManaged public func removeFromEvents(at indexes: NSIndexSet) + + @objc(replaceObjectInEventsAtIndex:withObject:) + @NSManaged public func replaceEvents(at idx: Int, with value: EventMO) + + @objc(replaceEventsAtIndexes:withEvents:) + @NSManaged public func replaceEvents(at indexes: NSIndexSet, with values: [EventMO]) + + @objc(addEventsObject:) + @NSManaged public func addToEvents(_ value: EventMO) + + @objc(removeEventsObject:) + @NSManaged public func removeFromEvents(_ value: EventMO) + + @objc(addEvents:) + @NSManaged public func addToEvents(_ values: NSOrderedSet) + + @objc(removeEvents:) + @NSManaged public func removeFromEvents(_ values: NSOrderedSet) + +} + +// MARK: Generated accessors for tracks +extension MeasurementMO { + + @objc(insertObject:inTracksAtIndex:) + @NSManaged public func insertIntoTracks(_ value: TrackMO, at idx: Int) + + @objc(removeObjectFromTracksAtIndex:) + @NSManaged public func removeFromTracks(at idx: Int) + + @objc(insertTracks:atIndexes:) + @NSManaged public func insertIntoTracks(_ values: [TrackMO], at indexes: NSIndexSet) + + @objc(removeTracksAtIndexes:) + @NSManaged public func removeFromTracks(at indexes: NSIndexSet) + + @objc(replaceObjectInTracksAtIndex:withObject:) + @NSManaged public func replaceTracks(at idx: Int, with value: TrackMO) + + @objc(replaceTracksAtIndexes:withTracks:) + @NSManaged public func replaceTracks(at indexes: NSIndexSet, with values: [TrackMO]) + + @objc(addTracksObject:) + @NSManaged public func addToTracks(_ value: TrackMO) + + @objc(removeTracksObject:) + @NSManaged public func removeFromTracks(_ value: TrackMO) + + @objc(addTracks:) + @NSManaged public func addToTracks(_ values: NSOrderedSet) + + @objc(removeTracks:) + @NSManaged public func removeFromTracks(_ values: NSOrderedSet) + +} diff --git a/Sources/DataCapturing/Model/Generated/TrackMO+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/TrackMO+CoreDataClass.swift new file mode 100644 index 0000000..9161a1f --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/TrackMO+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// TrackMO+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(TrackMO) +public class TrackMO: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/TrackMO+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/TrackMO+CoreDataProperties.swift new file mode 100644 index 0000000..e4230e9 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/TrackMO+CoreDataProperties.swift @@ -0,0 +1,93 @@ +// +// TrackMO+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension TrackMO { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "Track") + } + + @NSManaged public var altitudes: NSOrderedSet? + @NSManaged public var locations: NSOrderedSet? + @NSManaged public var measurement: MeasurementMO? + +} + +// MARK: Generated accessors for altitudes +extension TrackMO { + + @objc(insertObject:inAltitudesAtIndex:) + @NSManaged public func insertIntoAltitudes(_ value: AltitudeMO, at idx: Int) + + @objc(removeObjectFromAltitudesAtIndex:) + @NSManaged public func removeFromAltitudes(at idx: Int) + + @objc(insertAltitudes:atIndexes:) + @NSManaged public func insertIntoAltitudes(_ values: [AltitudeMO], at indexes: NSIndexSet) + + @objc(removeAltitudesAtIndexes:) + @NSManaged public func removeFromAltitudes(at indexes: NSIndexSet) + + @objc(replaceObjectInAltitudesAtIndex:withObject:) + @NSManaged public func replaceAltitudes(at idx: Int, with value: AltitudeMO) + + @objc(replaceAltitudesAtIndexes:withAltitudes:) + @NSManaged public func replaceAltitudes(at indexes: NSIndexSet, with values: [AltitudeMO]) + + @objc(addAltitudesObject:) + @NSManaged public func addToAltitudes(_ value: AltitudeMO) + + @objc(removeAltitudesObject:) + @NSManaged public func removeFromAltitudes(_ value: AltitudeMO) + + @objc(addAltitudes:) + @NSManaged public func addToAltitudes(_ values: NSOrderedSet) + + @objc(removeAltitudes:) + @NSManaged public func removeFromAltitudes(_ values: NSOrderedSet) + +} + +// MARK: Generated accessors for locations +extension TrackMO { + + @objc(insertObject:inLocationsAtIndex:) + @NSManaged public func insertIntoLocations(_ value: GeoLocationMO, at idx: Int) + + @objc(removeObjectFromLocationsAtIndex:) + @NSManaged public func removeFromLocations(at idx: Int) + + @objc(insertLocations:atIndexes:) + @NSManaged public func insertIntoLocations(_ values: [GeoLocationMO], at indexes: NSIndexSet) + + @objc(removeLocationsAtIndexes:) + @NSManaged public func removeFromLocations(at indexes: NSIndexSet) + + @objc(replaceObjectInLocationsAtIndex:withObject:) + @NSManaged public func replaceLocations(at idx: Int, with value: GeoLocationMO) + + @objc(replaceLocationsAtIndexes:withLocations:) + @NSManaged public func replaceLocations(at indexes: NSIndexSet, with values: [GeoLocationMO]) + + @objc(addLocationsObject:) + @NSManaged public func addToLocations(_ value: GeoLocationMO) + + @objc(removeLocationsObject:) + @NSManaged public func removeFromLocations(_ value: GeoLocationMO) + + @objc(addLocations:) + @NSManaged public func addToLocations(_ values: NSOrderedSet) + + @objc(removeLocations:) + @NSManaged public func removeFromLocations(_ values: NSOrderedSet) + +} diff --git a/Sources/DataCapturing/Model/Generated/UploadSession+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/UploadSession+CoreDataClass.swift new file mode 100644 index 0000000..184baf9 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/UploadSession+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// UploadSession+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(UploadSession) +public class UploadSession: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/UploadSession+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/UploadSession+CoreDataProperties.swift new file mode 100644 index 0000000..e3ed19d --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/UploadSession+CoreDataProperties.swift @@ -0,0 +1,59 @@ +// +// UploadSession+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension UploadSession { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "UploadSession") + } + + @NSManaged public var location: URL? + @NSManaged public var time: Date? + @NSManaged public var measurement: MeasurementMO? + @NSManaged public var uploadProtocol: NSOrderedSet? + +} + +// MARK: Generated accessors for uploadProtocol +extension UploadSession { + + @objc(insertObject:inUploadProtocolAtIndex:) + @NSManaged public func insertIntoUploadProtocol(_ value: UploadTask, at idx: Int) + + @objc(removeObjectFromUploadProtocolAtIndex:) + @NSManaged public func removeFromUploadProtocol(at idx: Int) + + @objc(insertUploadProtocol:atIndexes:) + @NSManaged public func insertIntoUploadProtocol(_ values: [UploadTask], at indexes: NSIndexSet) + + @objc(removeUploadProtocolAtIndexes:) + @NSManaged public func removeFromUploadProtocol(at indexes: NSIndexSet) + + @objc(replaceObjectInUploadProtocolAtIndex:withObject:) + @NSManaged public func replaceUploadProtocol(at idx: Int, with value: UploadTask) + + @objc(replaceUploadProtocolAtIndexes:withUploadProtocol:) + @NSManaged public func replaceUploadProtocol(at indexes: NSIndexSet, with values: [UploadTask]) + + @objc(addUploadProtocolObject:) + @NSManaged public func addToUploadProtocol(_ value: UploadTask) + + @objc(removeUploadProtocolObject:) + @NSManaged public func removeFromUploadProtocol(_ value: UploadTask) + + @objc(addUploadProtocol:) + @NSManaged public func addToUploadProtocol(_ values: NSOrderedSet) + + @objc(removeUploadProtocol:) + @NSManaged public func removeFromUploadProtocol(_ values: NSOrderedSet) + +} diff --git a/Sources/DataCapturing/Model/Generated/UploadTask+CoreDataClass.swift b/Sources/DataCapturing/Model/Generated/UploadTask+CoreDataClass.swift new file mode 100644 index 0000000..af247c8 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/UploadTask+CoreDataClass.swift @@ -0,0 +1,15 @@ +// +// UploadTask+CoreDataClass.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + +@objc(UploadTask) +public class UploadTask: NSManagedObject { + +} diff --git a/Sources/DataCapturing/Model/Generated/UploadTask+CoreDataProperties.swift b/Sources/DataCapturing/Model/Generated/UploadTask+CoreDataProperties.swift new file mode 100644 index 0000000..55b3630 --- /dev/null +++ b/Sources/DataCapturing/Model/Generated/UploadTask+CoreDataProperties.swift @@ -0,0 +1,26 @@ +// +// UploadTask+CoreDataProperties.swift +// DataCapturing +// +// Created by Klemens Muthmann on 09.10.24. +// +// + +import Foundation +import CoreData + + +extension UploadTask { + + @nonobjc public class func fetchRequest() -> NSFetchRequest { + return NSFetchRequest(entityName: "UploadTask") + } + + @NSManaged public var causedError: Bool + @NSManaged public var command: Int16 + @NSManaged public var httpStatus: Int16 + @NSManaged public var message: String? + @NSManaged public var time: Date? + @NSManaged public var uploadSession: UploadSession? + +}