class EE::Network::Ftp::ListingResponse

Overview

Specialization of FTP response returning a filename lisiting. More…

#include <ftp.hpp>

class ListingResponse: public EE::Network::Ftp::Response {
public:
    // construction

    ListingResponse(const Response& response, const std::string& data);

    // methods

    const std::vector<std::string>& getListing() const;
};

Inherited Members

public:
    // enums

    enum Status;

    // methods

    bool isOk() const;
    Status getStatus() const;
    const std::string& getMessage() const;

Detailed Documentation

Specialization of FTP response returning a filename lisiting.

Construction

ListingResponse(const Response& response, const std::string& data)

Default constructor.

Parameters:

response

Source response

data

Data containing the raw listing

Methods

const std::vector<std::string>& getListing() const

Return the array of directory/file names.

Returns:

Array containing the requested listing