engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 属性 | 所有成员列表
FTokenizedMessage类 参考

This class represents a rich tokenized message, such as would be used for compiler output with 'hyperlinks' to source file locations 更多...

#include <TokenizedMessage.h>

+ 类 FTokenizedMessage 继承关系图:

Public 成员函数

CORE_API TSharedRef< FTokenizedMessage > AddToken (const TSharedRef< IMessageToken > &InToken)
 Adds a token to a message. 更多...
 
CORE_API FName GetIdentifier () const
 
CORE_API TSharedPtr< IMessageToken > GetMessageLink () const
 Gets the token action associated with this messages as a whole. 更多...
 
CORE_API const TArray< TSharedRef< IMessageToken > > & GetMessageTokens () const
 Get the tokens in this message 更多...
 
CORE_API EMessageSeverity::Type GetSeverity () const
 Gets the severity of this message 更多...
 
CORE_API void SetIdentifier (FName InIdentifier)
 Assigns Identifier for the message to the provided name
 
CORE_API void SetMessageLink (const TSharedRef< IMessageToken > &InToken)
 Sets up a token action for the message as a whole (not to be displayed... intended to be invoked from a double click). 更多...
 
CORE_API void SetSeverity (const EMessageSeverity::Type InSeverity)
 Sets the severity of this message 更多...
 
CORE_API FText ToText () const
 Get this tokenized message as a string 更多...
 
- Public 成员函数 继承自 TSharedFromThis< FTokenizedMessage >
TSharedRef< FTokenizedMessage, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FTokenizedMessage const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

静态 Public 成员函数

static CORE_API TSharedRef< FTokenizedMessage > Create (EMessageSeverity::Type InSeverity, const FText &InMessageText=FText())
 Creates a new FTokenizedMessage 更多...
 
static CORE_API FName GetSeverityIconName (EMessageSeverity::Type InSeverity)
 Helper function for getting a severity as an icon name 更多...
 
static CORE_API FText GetSeverityText (EMessageSeverity::Type InSeverity)
 Helper function for getting a severity as text 更多...
 

Protected 属性

TSharedPtr< IMessageToken > MessageLink
 A token associated with the entire message (doesn't display)
 
TArray< TSharedRef< IMessageToken > > MessageTokens
 the array of message tokens this message contains
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< FTokenizedMessage >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< FTokenizedMessage >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

This class represents a rich tokenized message, such as would be used for compiler output with 'hyperlinks' to source file locations

成员函数说明

◆ AddToken()

CORE_API TSharedRef< FTokenizedMessage > FTokenizedMessage::AddToken ( const TSharedRef< IMessageToken > &  InToken)

Adds a token to a message.

参数
InMessageThe message to insert a token into
InTokenThe token to insert
返回
this message, for chaining calls.

◆ Create()

static CORE_API TSharedRef< FTokenizedMessage > FTokenizedMessage::Create ( EMessageSeverity::Type  InSeverity,
const FText &  InMessageText = FText() 
)
static

Creates a new FTokenizedMessage

参数
InSeverityThe severity of the message.
InMessageStringThe string to display for this message. If this is not empty, then a string token will be added to this message.
返回
the generated message for temporary storage or so other tokens can be added to it if required.

◆ GetIdentifier()

CORE_API FName FTokenizedMessage::GetIdentifier ( ) const
返回
Identifier for the message, if set, else NAME_None

◆ GetMessageLink()

CORE_API TSharedPtr< IMessageToken > FTokenizedMessage::GetMessageLink ( ) const

Gets the token action associated with this messages as a whole.

Should link to an associated element.

返回
A token action that was set via SetMessageLink().

◆ GetMessageTokens()

CORE_API const TArray< TSharedRef< IMessageToken > > & FTokenizedMessage::GetMessageTokens ( ) const

Get the tokens in this message

返回
an array of tokens

◆ GetSeverity()

CORE_API EMessageSeverity::Type FTokenizedMessage::GetSeverity ( ) const

Gets the severity of this message

返回
the severity of this message

◆ GetSeverityIconName()

static CORE_API FName FTokenizedMessage::GetSeverityIconName ( EMessageSeverity::Type  InSeverity)
static

Helper function for getting a severity as an icon name

参数
InSeveritythe severity to use
返回
the name of the icon for the severity

◆ GetSeverityText()

static CORE_API FText FTokenizedMessage::GetSeverityText ( EMessageSeverity::Type  InSeverity)
static

Helper function for getting a severity as text

参数
InSeveritythe severity to use
返回
a string representation of the severity

◆ SetMessageLink()

CORE_API void FTokenizedMessage::SetMessageLink ( const TSharedRef< IMessageToken > &  InToken)

Sets up a token action for the message as a whole (not to be displayed... intended to be invoked from a double click).

参数
InTokenA token for the entire message to link to.

◆ SetSeverity()

CORE_API void FTokenizedMessage::SetSeverity ( const EMessageSeverity::Type  InSeverity)

Sets the severity of this message

参数
InSeverityThe severity to set this message to

◆ ToText()

CORE_API FText FTokenizedMessage::ToText ( ) const

Get this tokenized message as a string

返回
a string representation of this message

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