载入中...
搜索中...
未找到
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
|
strong |
构造及析构函数说明
◆ CorrelationId()
|
default |
Constructs an absent correlation reference.
成员函数说明
◆ format()
|
inline |
Returns the stable ID or compatibility text projection.
在文件 GameEvent.h 第 80 行定义.
引用了 eve::detail::Id128< Tag >::format() , 以及 Id.
◆ fromEventId()
|
inlinestatic |
Creates a canonical correlation ID from an EventId.
在文件 GameEvent.h 第 58 行定义.
◆ fromLegacy()
|
inlinestatic |
Creates a compatibility-only arbitrary string correlation.
在文件 GameEvent.h 第 66 行定义.
◆ isCanonical()
|
inlinenoexcept |
◆ kind()
|
inlinenoexcept |
Returns the tagged correlation kind.
在文件 GameEvent.h 第 74 行定义.
友元及相关函数文档
◆ operator==
|
friend |
该类的文档由以下文件生成:
- src/modules/game_event/GameEvent.h