TrinityCore
Trinity::ChatCommands::AccountIdentifier Struct Reference

#include <ChatCommandTags.h>

+ Inheritance diagram for Trinity::ChatCommands::AccountIdentifier:

Public Types

using value_type = uint32
 
- Public Types inherited from Trinity::Impl::ChatCommands::ContainerTag
using ChatCommandResult = Trinity::Impl::ChatCommands::ChatCommandResult
 

Public Member Functions

 AccountIdentifier ()
 
 AccountIdentifier (WorldSession &session)
 
 operator uint32 () const
 
 operator std::string const & () const
 
 operator std::string_view () const
 
uint32 GetID () const
 
std::string const & GetName () const
 
bool IsConnected ()
 
WorldSessionGetConnectedSession ()
 
ChatCommandResult TryConsume (ChatHandler const *handler, std::string_view args)
 

Static Public Member Functions

static Optional< AccountIdentifierFromTarget (ChatHandler *handler)
 

Private Attributes

uint32 _id
 
std::string _name
 
WorldSession_session
 

Detailed Description

Definition at line 149 of file ChatCommandTags.h.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ AccountIdentifier() [1/2]

Trinity::ChatCommands::AccountIdentifier::AccountIdentifier ( )
inline

Definition at line 153 of file ChatCommandTags.h.

◆ AccountIdentifier() [2/2]

Trinity::ChatCommands::AccountIdentifier::AccountIdentifier ( WorldSession session)

Definition at line 63 of file ChatCommandTags.cpp.

Member Function Documentation

◆ FromTarget()

Optional< Trinity::ChatCommands::AccountIdentifier > Trinity::ChatCommands::AccountIdentifier::FromTarget ( ChatHandler handler)
static

Definition at line 95 of file ChatCommandTags.cpp.

+ Here is the call graph for this function:

◆ GetConnectedSession()

WorldSession * Trinity::ChatCommands::AccountIdentifier::GetConnectedSession ( )
inline

Definition at line 163 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ GetID()

uint32 Trinity::ChatCommands::AccountIdentifier::GetID ( ) const
inline

Definition at line 160 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ GetName()

std::string const & Trinity::ChatCommands::AccountIdentifier::GetName ( ) const
inline

Definition at line 161 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ IsConnected()

bool Trinity::ChatCommands::AccountIdentifier::IsConnected ( )
inline

Definition at line 162 of file ChatCommandTags.h.

+ Here is the caller graph for this function:

◆ operator std::string const &()

Trinity::ChatCommands::AccountIdentifier::operator std::string const & ( ) const
inline

Definition at line 157 of file ChatCommandTags.h.

◆ operator std::string_view()

Trinity::ChatCommands::AccountIdentifier::operator std::string_view ( ) const
inline

Definition at line 158 of file ChatCommandTags.h.

◆ operator uint32()

Trinity::ChatCommands::AccountIdentifier::operator uint32 ( ) const
inline

Definition at line 156 of file ChatCommandTags.h.

◆ TryConsume()

ChatCommandResult Trinity::ChatCommands::AccountIdentifier::TryConsume ( ChatHandler const *  handler,
std::string_view  args 
)

Definition at line 66 of file ChatCommandTags.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _id

uint32 Trinity::ChatCommands::AccountIdentifier::_id
private

Definition at line 170 of file ChatCommandTags.h.

◆ _name

std::string Trinity::ChatCommands::AccountIdentifier::_name
private

Definition at line 171 of file ChatCommandTags.h.

◆ _session

WorldSession* Trinity::ChatCommands::AccountIdentifier::_session
private

Definition at line 172 of file ChatCommandTags.h.


The documentation for this struct was generated from the following files: