Onsens  1.0
This is C++ game about bitwise logic.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
sf::Ftp::ListingResponse Class Reference

Specialization of FTP response returning a filename listing. More...

#include <Ftp.hpp>

+ Inheritance diagram for sf::Ftp::ListingResponse:
+ Collaboration diagram for sf::Ftp::ListingResponse:

Public Member Functions

 ListingResponse (const Response &response, const std::string &data)
 Default constructor. More...
 
const std::vector< std::string > & getListing () const
 Return the array of directory/file names. 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 filename listing.

Definition at line 221 of file Ftp.hpp.

Constructor & Destructor Documentation

◆ ListingResponse()

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

Default constructor.

Parameters
responseSource response
dataData containing the raw listing

Member Function Documentation

◆ getListing()

const std::vector< std::string > & sf::Ftp::ListingResponse::getListing ( ) const

Return the array of directory/file names.

Returns
Array containing the requested listing

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