Furrent
Public Member Functions | List of all members
fur::bencode::BencodeString Class Reference

#include <bencode_value.hpp>

Inheritance diagram for fur::bencode::BencodeString:
Inheritance graph
[legend]
Collaboration diagram for fur::bencode::BencodeString:
Collaboration graph
[legend]

Public Member Functions

 BencodeString (std::string data)
 
std::string to_string () const override
 Returns the string representation of the bencode value. More...
 
BencodeType get_type () const override
 Returns the type of the bencode value as a BencodeType enum. More...
 
std::string & value ()
 Returns the string value of the bencode value. More...
 
- Public Member Functions inherited from fur::bencode::BencodeValue
virtual ~BencodeValue ()=default
 

Constructor & Destructor Documentation

◆ BencodeString()

BencodeString::BencodeString ( std::string  data)
explicit

Member Function Documentation

◆ get_type()

BencodeType BencodeString::get_type ( ) const
overridevirtual

Returns the type of the bencode value as a BencodeType enum.

Implements fur::bencode::BencodeValue.

◆ to_string()

std::string BencodeString::to_string ( ) const
overridevirtual

Returns the string representation of the bencode value.

Implements fur::bencode::BencodeValue.

◆ value()

std::string & BencodeString::value ( )

Returns the string value of the bencode value.


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