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
| CORE_API TSharedRef< FTokenizedMessage > FTokenizedMessage::AddToken | ( | const TSharedRef< IMessageToken > & | InToken | ) |
Adds a token to a message.
| InMessage | The message to insert a token into |
| InToken | The token to insert |
|
static |
Creates a new FTokenizedMessage
| InSeverity | The severity of the message. |
| InMessageString | The string to display for this message. If this is not empty, then a string token will be added to this message. |
| CORE_API FName FTokenizedMessage::GetIdentifier | ( | ) | const |
| CORE_API TSharedPtr< IMessageToken > FTokenizedMessage::GetMessageLink | ( | ) | const |
Gets the token action associated with this messages as a whole.
Should link to an associated element.
| CORE_API const TArray< TSharedRef< IMessageToken > > & FTokenizedMessage::GetMessageTokens | ( | ) | const |
Get the tokens in this message
| CORE_API EMessageSeverity::Type FTokenizedMessage::GetSeverity | ( | ) | const |
Gets the severity of this message
|
static |
Helper function for getting a severity as an icon name
| InSeverity | the severity to use |
|
static |
Helper function for getting a severity as text
| InSeverity | the severity to use |
| 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).
| InToken | A token for the entire message to link to. |
| CORE_API void FTokenizedMessage::SetSeverity | ( | const EMessageSeverity::Type | InSeverity | ) |
Sets the severity of this message
| InSeverity | The severity to set this message to |
| CORE_API FText FTokenizedMessage::ToText | ( | ) | const |
Get this tokenized message as a string