Furrent
Public Member Functions | List of all members
fur::bencode::BencodeValue Class Referenceabstract

#include <bencode_value.hpp>

Inheritance diagram for fur::bencode::BencodeValue:
Inheritance graph
[legend]

Public Member Functions

virtual std::string to_string () const =0
 Returns the string representation of the bencode value. More...
 
virtual BencodeType get_type () const =0
 Returns the type of the bencode value as a BencodeType enum. More...
 
virtual ~BencodeValue ()=default
 

Constructor & Destructor Documentation

◆ ~BencodeValue()

virtual fur::bencode::BencodeValue::~BencodeValue ( )
virtualdefault

Member Function Documentation

◆ get_type()

virtual BencodeType fur::bencode::BencodeValue::get_type ( ) const
pure virtual

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

Implemented in fur::bencode::BencodeDict, fur::bencode::BencodeList, fur::bencode::BencodeString, and fur::bencode::BencodeInt.

◆ to_string()

virtual std::string fur::bencode::BencodeValue::to_string ( ) const
pure virtual

Returns the string representation of the bencode value.

Implemented in fur::bencode::BencodeDict, fur::bencode::BencodeList, fur::bencode::BencodeString, and fur::bencode::BencodeInt.


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