DataID
public struct DataID : Hashable
データポイントの、名称とデータ型を表す識別子です。
おもに、ブローカーおよびノードでのデータの意味と型の特定、 ダウンストリームフィルタにて指定された受信条件に各時系列データポイントが合致するかどうかの判定、などに使用されます。
特殊文字 / はセパレータです。名称/型の階層構造を表現することができます。
-
データIDの文字列表現からDataIDを生成します。
Declaration
Swift
public static func parse(_ string: String) -> (DataID?, Error?) -
データIDに使用される名前及び型に使用する文字列が有効かどうか調べます。
Declaration
Swift
public static func isValid(_ string: String) -> Bool
-
名称。
Declaration
Swift
public var name: String -
型。
Declaration
Swift
public var type: String -
設定中の名前が有効かどうか。
Declaration
Swift
public var isNameValid: Bool { get } -
設定中の型が有効かどうか。
Declaration
Swift
public var isTypeValid: Bool { get } -
データIDの文字列表現です。
Declaration
Swift
public var string: String { get }
-
Declaration
Swift
public init(name: String = String(), type: String = String())Parameters
name名称。
type型。
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public static func == (lhs: DataID, rhs: DataID) -> Bool
DataID Structure Reference