载入中...
搜索中...
未找到
eve::game_event::CorrelationId类 参考

Strong business-workflow correlation identity. 更多...

#include <GameEvent.h>

Public 类型

enum class  Kind : uint8_t { None , Id , Legacy }
 Kind public API. 更多...
 

Public 成员函数

 CorrelationId ()=default
 Constructs an absent correlation reference.
 
Kind kind () const noexcept
 Returns the tagged correlation kind.
 
bool isCanonical () const noexcept
 Returns whether this reference uses the canonical ID form.
 
std::string format () const
 Returns the stable ID or compatibility text projection.
 

静态 Public 成员函数

static CorrelationId fromEventId (EventId value)
 Creates a canonical correlation ID from an EventId.
 
static CorrelationId fromLegacy (std::string value)
 Creates a compatibility-only arbitrary string correlation.
 

友元

bool operator== (const CorrelationId &, const CorrelationId &) noexcept=default
 

详细描述

Strong business-workflow correlation identity.

Legacy is retained only when restoring old persisted envelopes whose causal metadata was not UUID-typed. New producers must use typed IDs.

在文件 GameEvent.h 第 49 行定义.

成员枚举类型说明

◆ Kind

enum class eve::game_event::CorrelationId::Kind : uint8_t
strong

Kind public API.

枚举值
None 
Id 
Legacy 

在文件 GameEvent.h 第 52 行定义.

构造及析构函数说明

◆ CorrelationId()

eve::game_event::CorrelationId::CorrelationId ( )
default

Constructs an absent correlation reference.

成员函数说明

◆ format()

std::string eve::game_event::CorrelationId::format ( ) const
inline

Returns the stable ID or compatibility text projection.

在文件 GameEvent.h 第 80 行定义.

引用了 eve::detail::Id128< Tag >::format() , 以及 Id.

◆ fromEventId()

static CorrelationId eve::game_event::CorrelationId::fromEventId ( EventId  value)
inlinestatic

Creates a canonical correlation ID from an EventId.

在文件 GameEvent.h 第 58 行定义.

引用了 Id, None , 以及 value.

◆ fromLegacy()

static CorrelationId eve::game_event::CorrelationId::fromLegacy ( std::string  value)
inlinestatic

Creates a compatibility-only arbitrary string correlation.

在文件 GameEvent.h 第 66 行定义.

引用了 Legacy, None , 以及 value.

◆ isCanonical()

bool eve::game_event::CorrelationId::isCanonical ( ) const
inlinenoexcept

Returns whether this reference uses the canonical ID form.

在文件 GameEvent.h 第 77 行定义.

引用了 Legacy.

◆ kind()

Kind eve::game_event::CorrelationId::kind ( ) const
inlinenoexcept

Returns the tagged correlation kind.

在文件 GameEvent.h 第 74 行定义.

被这些函数引用 eve::game_event::GameEventLog::restore().

友元及相关函数文档

◆ operator==

bool operator== ( const CorrelationId &  ,
const CorrelationId &   
)
friend

该类的文档由以下文件生成: