mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
CIdentifier utility classes
fake() returns a fake identifier, simulating an existing one. isFromSameMachine() is a utility class to compare whether another CIdentifier is from the same machine refs #881
This commit is contained in:
committed by
Mathew Sutcliffe
parent
42a13fceff
commit
54b76d91ad
@@ -55,6 +55,9 @@ namespace BlackMisc
|
||||
//! Returns an anonymous identifier.
|
||||
static CIdentifier anonymous();
|
||||
|
||||
//! Returns a fake identifier.
|
||||
static CIdentifier fake();
|
||||
|
||||
//! Produces a UUID generated from the identifier.
|
||||
QUuid toUuid() const;
|
||||
|
||||
@@ -82,6 +85,9 @@ namespace BlackMisc
|
||||
//! Check if originating from the same local machine
|
||||
bool isFromLocalMachine() const;
|
||||
|
||||
//! Check if other identifier is from the same machine
|
||||
bool isFromSameMachine(const CIdentifier &other) const;
|
||||
|
||||
//! Check if originating from the same process id
|
||||
bool isFromSameProcess() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user