MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / _RepresentationType

Method _RepresentationType

deps/FtpClient/FTPClient.cpp:1556–1576  ·  view source on GitHub ↗

Executes the FTP command TYPE (REPRESENTATION TYPE) see Documentation of nsFTP::CRepresentation @param[in] representation see Documentation of nsFTP::CRepresentation @param[in] dwSize Indicates Bytesize for type LocalByte. @return see return values of CFTPClient::SimpleErrorCheck

Source from the content-addressed store, hash-verified

1554/// @param[in] dwSize Indicates Bytesize for type LocalByte.
1555/// @return see return values of CFTPClient::SimpleErrorCheck
1556int CFTPClient::_RepresentationType(const CRepresentation& representation, DWORD dwSize) const
1557{
1558 CArg Arguments(representation.Type().AsString());
1559
1560 switch( representation.Type().AsEnum() )
1561 {
1562 case CType::tyLocalByte:
1563 Arguments.push_back(CMakeString() << dwSize);
1564 break;
1565 case CType::tyASCII:
1566 case CType::tyEBCDIC:
1567 case CType::tyImage:
1568 if( representation.Format().IsValid() )
1569 Arguments.push_back(representation.Format().AsString());
1570 }
1571
1572 CReply Reply;
1573 if( !SendCommand(CCommand::TYPE(), Arguments, Reply) )
1574 return FTP_ERROR;
1575 return SimpleErrorCheck(Reply);
1576}
1577
1578/// Executes the FTP command CWD (CHANGE WORKING DIRECTORY)
1579/// This command allows the user to work with a different directory or dataset

Callers

nothing calls this directly

Calls 4

CMakeStringClass · 0.85
AsStringMethod · 0.80
AsEnumMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected