#include <ArServerFileUtils.h>
Public Member Functions | |
| void | addPostMoveCallback (ArFunctor *functor, ArListPos::Pos position=ArListPos::LAST) |
| Adds a callback to be called after moving from temp dir to final loc. | |
| void | addPreMoveCallback (ArFunctor *functor, ArListPos::Pos position=ArListPos::LAST) |
| Adds a callback to be called before moving from temp dir to final loc. | |
| ArServerFileFromClient (ArServerBase *server, const char *topDir, const char *tempDir) | |
| Constructor. | |
| const char * | getMovingFileName (void) |
| Internal call for getting the name of the file we're moving. | |
| void | putFile (ArServerClient *client, ArNetPacket *packet) |
| Puts the file. | |
| void | putFileInterleaved (ArServerClient *client, ArNetPacket *packet) |
| Puts the file with interleaved responses. | |
| void | putFileWithTimestamp (ArServerClient *client, ArNetPacket *packet) |
| Puts the file. | |
| void | putFileWithTimestampInterleaved (ArServerClient *client, ArNetPacket *packet) |
| Puts the file with interleaved responses. | |
| void | remPostMoveCallback (ArFunctor *functor) |
| Removes a callback to be called after moving from temp dir to final loc. | |
| void | remPreMoveCallback (ArFunctor *functor) |
| Removes a callback to be called before moving from temp dir to final loc. | |
| virtual | ~ArServerFileFromClient () |
| Destructor. | |
Protected Member Functions | |
| void | internalPutFile (ArServerClient *client, ArNetPacket *packet, bool interleaved, bool isSetTimestamp) |
Protected Attributes | |
| char | myBaseDir [2048] |
| int | myFileNumber |
| std::map< std::string, FileInfo * > | myMap |
| std::string | myMovingFileName |
| std::list< ArFunctor * > | myPostMoveCallbacks |
| std::list< ArFunctor * > | myPreMoveCallbacks |
| ArFunctor2C< ArServerFileFromClient, ArServerClient *, ArNetPacket * > | myPutFileCB |
| ArFunctor2C< ArServerFileFromClient, ArServerClient *, ArNetPacket * > | myPutFileInterleavedCB |
| ArFunctor2C< ArServerFileFromClient, ArServerClient *, ArNetPacket * > | myPutFileWithTimestampCB |
| ArFunctor2C< ArServerFileFromClient, ArServerClient *, ArNetPacket * > | myPutFileWithTimestampInterleavedCB |
| ArServerBase * | myServer |
| char | myTempDir [2048] |
Classes | |
| class | FileInfo |
| ArServerFileFromClient::ArServerFileFromClient | ( | ArServerBase * | server, | |
| const char * | topDir, | |||
| const char * | tempDir | |||
| ) |
Constructor.
| ArServerFileFromClient::~ArServerFileFromClient | ( | ) | [virtual] |
Destructor.
| void ArServerFileFromClient::addPostMoveCallback | ( | ArFunctor * | functor, | |
| ArListPos::Pos | position = ArListPos::LAST | |||
| ) |
Adds a callback to be called after moving from temp dir to final loc.
| void ArServerFileFromClient::addPreMoveCallback | ( | ArFunctor * | functor, | |
| ArListPos::Pos | position = ArListPos::LAST | |||
| ) |
Adds a callback to be called before moving from temp dir to final loc.
| const char* ArServerFileFromClient::getMovingFileName | ( | void | ) | [inline] |
Internal call for getting the name of the file we're moving.
| void ArServerFileFromClient::internalPutFile | ( | ArServerClient * | client, | |
| ArNetPacket * | packet, | |||
| bool | interleaved, | |||
| bool | isSetTimestamp | |||
| ) | [protected] |
| void ArServerFileFromClient::putFile | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Puts the file.
| void ArServerFileFromClient::putFileInterleaved | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Puts the file with interleaved responses.
| void ArServerFileFromClient::putFileWithTimestamp | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Puts the file.
| void ArServerFileFromClient::putFileWithTimestampInterleaved | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
Puts the file with interleaved responses.
| void ArServerFileFromClient::remPostMoveCallback | ( | ArFunctor * | functor | ) |
Removes a callback to be called after moving from temp dir to final loc.
| void ArServerFileFromClient::remPreMoveCallback | ( | ArFunctor * | functor | ) |
Removes a callback to be called before moving from temp dir to final loc.
char ArServerFileFromClient::myBaseDir[2048] [protected] |
int ArServerFileFromClient::myFileNumber [protected] |
std::map<std::string, FileInfo *> ArServerFileFromClient::myMap [protected] |
std::string ArServerFileFromClient::myMovingFileName [protected] |
std::list<ArFunctor *> ArServerFileFromClient::myPostMoveCallbacks [protected] |
std::list<ArFunctor *> ArServerFileFromClient::myPreMoveCallbacks [protected] |
ArFunctor2C<ArServerFileFromClient, ArServerClient *, ArNetPacket *> ArServerFileFromClient::myPutFileCB [protected] |
ArFunctor2C<ArServerFileFromClient, ArServerClient *, ArNetPacket *> ArServerFileFromClient::myPutFileInterleavedCB [protected] |
ArFunctor2C<ArServerFileFromClient, ArServerClient *, ArNetPacket *> ArServerFileFromClient::myPutFileWithTimestampCB [protected] |
ArFunctor2C<ArServerFileFromClient, ArServerClient *, ArNetPacket *> ArServerFileFromClient::myPutFileWithTimestampInterleavedCB [protected] |
ArServerBase* ArServerFileFromClient::myServer [protected] |
char ArServerFileFromClient::myTempDir[2048] [protected] |
1.4.7