#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 | 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) |
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 |
ArServerBase * | myServer |
char | myTempDir [2048] |
Classes | |
class | FileInfo |
Definition at line 126 of file ArServerFileUtils.h.
|
Constructor.
Definition at line 685 of file ArServerFileUtils.cpp. References ArServerBase::addData(), ArUtil::appendSlash(), ArUtil::fixSlashes(), myBaseDir, myFileNumber, myPutFileCB, myPutFileInterleavedCB, myServer, and myTempDir. |
|
Destructor.
Definition at line 721 of file ArServerFileUtils.cpp. |
|
Adds a callback to be called after moving from temp dir to final loc.
Definition at line 1039 of file ArServerFileUtils.cpp. References ArLog::log(), and myPostMoveCallbacks. |
|
Adds a callback to be called before moving from temp dir to final loc.
Definition at line 1021 of file ArServerFileUtils.cpp. References ArLog::log(), and myPreMoveCallbacks. |
|
Internal call for getting the name of the file we're moving.
Definition at line 151 of file ArServerFileUtils.h. References myMovingFileName. |
|
|
Puts the file.
Definition at line 727 of file ArServerFileUtils.cpp. References client, and internalPutFile(). |
|
Puts the file with interleaved responses.
Definition at line 733 of file ArServerFileUtils.cpp. References client, and internalPutFile(). |
|
Removes a callback to be called after moving from temp dir to final loc.
Definition at line 1051 of file ArServerFileUtils.cpp. References myPostMoveCallbacks. |
|
Removes a callback to be called before moving from temp dir to final loc.
Definition at line 1033 of file ArServerFileUtils.cpp. References myPreMoveCallbacks. |
|
Definition at line 155 of file ArServerFileUtils.h. Referenced by ArServerFileFromClient(), and internalPutFile(). |
|
Definition at line 167 of file ArServerFileUtils.h. Referenced by ArServerFileFromClient(), and internalPutFile(). |
|
Definition at line 180 of file ArServerFileUtils.h. Referenced by internalPutFile(). |
|
Definition at line 165 of file ArServerFileUtils.h. Referenced by getMovingFileName(), and internalPutFile(). |
|
Definition at line 159 of file ArServerFileUtils.h. Referenced by addPostMoveCallback(), internalPutFile(), and remPostMoveCallback(). |
|
Definition at line 158 of file ArServerFileUtils.h. Referenced by addPreMoveCallback(), internalPutFile(), and remPreMoveCallback(). |
|
Definition at line 161 of file ArServerFileUtils.h. Referenced by ArServerFileFromClient(). |
|
Definition at line 163 of file ArServerFileUtils.h. Referenced by ArServerFileFromClient(). |
|
Definition at line 157 of file ArServerFileUtils.h. Referenced by ArServerFileFromClient(), and internalPutFile(). |
|
Definition at line 156 of file ArServerFileUtils.h. Referenced by ArServerFileFromClient(), and internalPutFile(). |