-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: Package.swift
- Loading branch information
Showing
23 changed files
with
537 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# FastRTPSBridge | ||
# FastRTPSSwift | ||
|
||
A description of this package. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
///// | ||
//// DDSTopic.swift | ||
/// Copyright © 2020 Dmitriy Borovikov. All rights reserved. | ||
// | ||
|
||
|
||
import Foundation | ||
|
||
/// Basic DDS topic requement. Must define topic name string as Raw value | ||
public protocol DDSTopic: RawRepresentable where RawValue == String {} | ||
|
||
/// Reader topic requements | ||
public protocol DDSReaderTopic: DDSTopic { | ||
/// Return profile which defines Reader parameters: durability and reliability QoS | ||
var readerProfile: RTPSReaderProfile { get } | ||
} | ||
|
||
/// Writer topic requements | ||
public protocol DDSWriterTopic: DDSTopic { | ||
/// Return profile which defines Writer parameters: durability, reliability and disablePositiveACKs QoS | ||
var writerProfile: RTPSWriterProfile { get } | ||
} | ||
|
||
public extension RTPSReaderProfile { | ||
/// Initializer for RTPSReaderProfile | ||
/// - Parameters: | ||
/// - reliability: Reliability QoS | ||
/// - durability: Durability QoS | ||
init(reliability: Reliability, durability: Durability) { | ||
self.init(keyed: false, reliability: reliability, durability: durability) | ||
} | ||
} | ||
|
||
public extension RTPSWriterProfile { | ||
/// Initializer for RTPRTPSWriterProfileSReaderProfile | ||
/// - Parameters: | ||
/// - reliability: Reliability QoS | ||
/// - durability: Durability QoS | ||
/// - disablePositiveACKs: disablePositiveACKs QoS | ||
init(reliability: Reliability, durability: Durability, disablePositiveACKs: Bool) { | ||
self.init(keyed: false, reliability: reliability, durability: durability, disablePositiveACKs: disablePositiveACKs) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.