#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] |
1.5.1