El Octavio  1.0
This is a video game about adventures.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
sf::Ftp::DirectoryResponse Class Reference

Specialization of FTP response returning a directory. More...

#include <Ftp.hpp>

+ Inheritance diagram for sf::Ftp::DirectoryResponse:
+ Collaboration 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...
 
- Public Member Functions inherited from sf::Ftp::Response
 Response (Status code=InvalidResponse, const std::string &message="")
 Default constructor. 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...
 

Additional Inherited Members

- Public Types inherited from sf::Ftp::Response
enum  Status {
  RestartMarkerReply = 110 , ServiceReadySoon = 120 , DataConnectionAlreadyOpened = 125 , OpeningDataConnection = 150 ,
  Ok = 200 , PointlessCommand = 202 , SystemStatus = 211 , DirectoryStatus = 212 ,
  FileStatus = 213 , HelpMessage = 214 , SystemType = 215 , ServiceReady = 220 ,
  ClosingConnection = 221 , DataConnectionOpened = 225 , ClosingDataConnection = 226 , EnteringPassiveMode = 227 ,
  LoggedIn = 230 , FileActionOk = 250 , DirectoryOk = 257 , NeedPassword = 331 ,
  NeedAccountToLogIn = 332 , NeedInformation = 350 , ServiceUnavailable = 421 , DataConnectionUnavailable = 425 ,
  TransferAborted = 426 , FileActionAborted = 450 , LocalError = 451 , InsufficientStorageSpace = 452 ,
  CommandUnknown = 500 , ParametersUnknown = 501 , CommandNotImplemented = 502 , BadCommandSequence = 503 ,
  ParameterNotImplemented = 504 , NotLoggedIn = 530 , NeedAccountToStore = 532 , FileUnavailable = 550 ,
  PageTypeUnknown = 551 , NotEnoughMemory = 552 , FilenameNotAllowed = 553 , InvalidResponse = 1000 ,
  ConnectionFailed = 1001 , ConnectionClosed = 1002 , InvalidFile = 1003
}
 Status codes possibly returned by a FTP response. More...
 

Detailed Description

Specialization of FTP response returning a directory.

Definition at line 188 of file Ftp.hpp.

Constructor & Destructor Documentation

◆ DirectoryResponse()

sf::Ftp::DirectoryResponse::DirectoryResponse ( const Response response)

Default constructor.

Parameters
responseSource response

Member Function Documentation

◆ getDirectory()

const std::string & sf::Ftp::DirectoryResponse::getDirectory ( ) const

Get the directory returned in the response.

Returns
Directory name

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