载入中...
搜索中...
未找到
eve::state::IStateQuery类 参考abstract

Read-only world-state boundary owned by consumers such as Dialogue. 更多...

#include <StateAccess.h>

类 eve::state::IStateQuery 继承关系图:
eve::attributes::AttributeSetStateAdapter eve::statepatch::StatePatchStateAdapter eve::tags::TagStoreStateAdapter

Public 成员函数

virtual ~IStateQuery ()=default
 I state query.
 
virtual std::optional< eve::Value > value (std::string_view subject, std::string_view key) const =0
 Query a generic world value.
 
virtual std::optional< bool > hasTag (std::string_view subject, std::string_view tag) const =0
 Query exact tag membership.
 
virtual std::optional< eve::Value > attribute (std::string_view subject, std::string_view key) const =0
 Query a numeric or structured attribute.
 
virtual std::optional< eve::Value > resource (std::string_view subject, std::string_view key) const =0
 Query a resource value or marker.
 
virtual std::optional< eve::Value > state (std::string_view subject, std::string_view key) const =0
 Query a persistent/world state value.
 
virtual std::optional< bool > authority (std::string_view subject, std::string_view scope) const =0
 Query read-only authority for a scope.
 

静态 Public 属性

static constexpr const char * capabilityName = "eve.state.IStateQuery"
 

详细描述

Read-only world-state boundary owned by consumers such as Dialogue.

Implementations are synchronous and must not retain query arguments or invoke unknown callbacks while holding a lock. nullopt means that this provider does not own the requested domain/key. A returned false is a known negative answer. The provider is borrowed by the caller and must outlive the query context; it is not retained by the capability registry after revoke.

在文件 StateAccess.h 第 79 行定义.

构造及析构函数说明

◆ ~IStateQuery()

virtual eve::state::IStateQuery::~IStateQuery ( )
virtualdefault

I state query.

成员函数说明

◆ attribute()

virtual std::optional< eve::Value > eve::state::IStateQuery::attribute ( std::string_view  subject,
std::string_view  key 
) const
pure virtual

◆ authority()

virtual std::optional< bool > eve::state::IStateQuery::authority ( std::string_view  subject,
std::string_view  scope 
) const
pure virtual

◆ hasTag()

virtual std::optional< bool > eve::state::IStateQuery::hasTag ( std::string_view  subject,
std::string_view  tag 
) const
pure virtual

◆ resource()

virtual std::optional< eve::Value > eve::state::IStateQuery::resource ( std::string_view  subject,
std::string_view  key 
) const
pure virtual

◆ state()

virtual std::optional< eve::Value > eve::state::IStateQuery::state ( std::string_view  subject,
std::string_view  key 
) const
pure virtual

◆ value()

virtual std::optional< eve::Value > eve::state::IStateQuery::value ( std::string_view  subject,
std::string_view  key 
) const
pure virtual

类成员变量说明

◆ capabilityName

constexpr const char* eve::state::IStateQuery::capabilityName = "eve.state.IStateQuery"
staticconstexpr

在文件 StateAccess.h 第 81 行定义.


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