Botcraft 1.21.4
Loading...
Searching...
No Matches
ProtocolCraft::Identifier Class Reference

#include <Identifier.hpp>

Inheritance diagram for ProtocolCraft::Identifier:
ProtocolCraft::NetworkType

Public Member Functions

bool operator< (const Identifier &rhs) const
 
std::string GetName () const
 
auto & SetName (const std::string &name)
 
std::string GetNamespace () const
 
auto & SetNamespace (const std::string &namespace_)
 
std::string GetFull () const
 
auto & SetRawString (const std::string &raw)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 

Private Member Functions

 SERIALIZED_FIELD_WITHOUT_GETTER_SETTER (RawString, std::string)
 

Private Attributes

 DECLARE_READ_WRITE_SERIALIZE
 

Additional Inherited Members

- Protected Member Functions inherited from ProtocolCraft::NetworkType
virtual void ReadImpl (ReadIterator &iter, size_t &length)=0
 
virtual void WriteImpl (WriteContainer &container) const =0
 
virtual Json::Value SerializeImpl () const =0
 

Detailed Description

Definition at line 7 of file Identifier.hpp.

Member Function Documentation

◆ GetFull()

std::string ProtocolCraft::Identifier::GetFull ( ) const
inline

Definition at line 46 of file Identifier.hpp.

References GetName(), and GetNamespace().

◆ GetName()

std::string ProtocolCraft::Identifier::GetName ( ) const
inline

Definition at line 20 of file Identifier.hpp.

Referenced by GetFull(), operator<(), and SetNamespace().

◆ GetNamespace()

std::string ProtocolCraft::Identifier::GetNamespace ( ) const
inline

Definition at line 33 of file Identifier.hpp.

Referenced by GetFull(), operator<(), and SetName().

◆ operator<()

bool ProtocolCraft::Identifier::operator< ( const Identifier rhs) const
inline

Definition at line 14 of file Identifier.hpp.

References GetName(), and GetNamespace().

◆ SERIALIZED_FIELD_WITHOUT_GETTER_SETTER()

ProtocolCraft::Identifier::SERIALIZED_FIELD_WITHOUT_GETTER_SETTER ( RawString  ,
std::string   
)
private

◆ SetName()

auto & ProtocolCraft::Identifier::SetName ( const std::string &  name)
inline

Definition at line 26 of file Identifier.hpp.

References GetNamespace().

◆ SetNamespace()

auto & ProtocolCraft::Identifier::SetNamespace ( const std::string &  namespace_)
inline

Definition at line 39 of file Identifier.hpp.

References GetName().

◆ SetRawString()

auto & ProtocolCraft::Identifier::SetRawString ( const std::string &  raw)
inline

Definition at line 58 of file Identifier.hpp.

Member Data Documentation

◆ DECLARE_READ_WRITE_SERIALIZE

ProtocolCraft::Identifier::DECLARE_READ_WRITE_SERIALIZE
private

Definition at line 11 of file Identifier.hpp.


The documentation for this class was generated from the following file: