sf::Ftp::DirectoryResponse Class Reference
Specialization of FTP response returning a directory. More...
#include <Ftp.hpp>
Inheritance diagram for sf::Ftp::DirectoryResponse:
Public Member Functions | |
DirectoryResponse (const Response &response) | |
Default constructor. More... | |
const std::string & | getDirectory () const |
Get the directory returned in the response. More... | |
bool | isOk () const |
Check if the status code means a success. More... | |
Status | getStatus () const |
Get the status code of the response. More... | |
const std::string & | getMessage () const |
Get the full message contained in the response. More... | |
Detailed Description
Member Enumeration Documentation
|
inherited |
Status codes possibly returned by a FTP response.
Constructor & Destructor Documentation
sf::Ftp::DirectoryResponse::DirectoryResponse | ( | const Response & | response | ) |
Default constructor.
- Parameters
-
response Source response
Member Function Documentation
const std::string& sf::Ftp::DirectoryResponse::getDirectory | ( | ) | const |
Get the directory returned in the response.
- Returns
- Directory name
|
inherited |
Get the full message contained in the response.
- Returns
- The response message
|
inherited |
Get the status code of the response.
- Returns
- Status code
|
inherited |
Check if the status code means a success.
This function is defined for convenience, it is equivalent to testing if the status code is < 400.
- Returns
- True if the status is a success, false if it is a failure
The documentation for this class was generated from the following file: