ArServerDeleteFileOnServer Class Reference

#include <ArServerFileUtils.h>

List of all members.


Detailed Description

Note:
Linux only
This class is set up so that a client can get delete files on the robot, this class ONLY deletes files. You should use this class by using ArClientDeleteFileOnServer and NOT by using this classes interface directly, this is because the API is and will remain fairly volatile... if you need more functionality let us know and we'll add it if its reasonable.


Public Member Functions

void addPostDeleteCallback (ArFunctor *functor, ArListPos::Pos position=ArListPos::LAST)
 Adds a callback to be called after moving from temp dir to final loc.
void addPreDeleteCallback (ArFunctor *functor, ArListPos::Pos position=ArListPos::LAST)
 Adds a callback to be called before moving from temp dir to final loc.
 ArServerDeleteFileOnServer (ArServerBase *server, const char *topDir)
 Constructor.
void deleteFile (ArServerClient *client, ArNetPacket *packet)
 Deletes the file.
const char * getDeletingFileName (void)
 Gets the filename of the file we're deleting.
void remPostDeleteCallback (ArFunctor *functor)
 Removes a callback to be called after moving from temp dir to final loc.
void remPreDeleteCallback (ArFunctor *functor)
 Removes a callback to be called before moving from temp dir to final loc.
virtual ~ArServerDeleteFileOnServer ()
 Destructor.

Protected Attributes

char myBaseDir [2048]
ArFunctor2C< ArServerDeleteFileOnServer,
ArServerClient *, ArNetPacket * > 
myDeleteFileCB
std::string myDeletingFileName
std::list< ArFunctor * > myPostDeleteCallbacks
std::list< ArFunctor * > myPreDeleteCallbacks
ArServerBasemyServer


Constructor & Destructor Documentation

ArServerDeleteFileOnServer::ArServerDeleteFileOnServer ( ArServerBase server,
const char *  topDir 
)

Constructor.

ArServerDeleteFileOnServer::~ArServerDeleteFileOnServer (  )  [virtual]

Destructor.


Member Function Documentation

void ArServerDeleteFileOnServer::addPostDeleteCallback ( ArFunctor functor,
ArListPos::Pos  position = ArListPos::LAST 
)

Adds a callback to be called after moving from temp dir to final loc.

void ArServerDeleteFileOnServer::addPreDeleteCallback ( ArFunctor functor,
ArListPos::Pos  position = ArListPos::LAST 
)

Adds a callback to be called before moving from temp dir to final loc.

void ArServerDeleteFileOnServer::deleteFile ( ArServerClient client,
ArNetPacket packet 
)

Deletes the file.

const char* ArServerDeleteFileOnServer::getDeletingFileName ( void   )  [inline]

Gets the filename of the file we're deleting.

void ArServerDeleteFileOnServer::remPostDeleteCallback ( ArFunctor functor  ) 

Removes a callback to be called after moving from temp dir to final loc.

void ArServerDeleteFileOnServer::remPreDeleteCallback ( ArFunctor functor  ) 

Removes a callback to be called before moving from temp dir to final loc.


Member Data Documentation

char ArServerDeleteFileOnServer::myBaseDir[2048] [protected]

ArFunctor2C<ArServerDeleteFileOnServer, ArServerClient *, ArNetPacket *> ArServerDeleteFileOnServer::myDeleteFileCB [protected]

std::string ArServerDeleteFileOnServer::myDeletingFileName [protected]

std::list<ArFunctor *> ArServerDeleteFileOnServer::myPostDeleteCallbacks [protected]

std::list<ArFunctor *> ArServerDeleteFileOnServer::myPreDeleteCallbacks [protected]

ArServerBase* ArServerDeleteFileOnServer::myServer [protected]


The documentation for this class was generated from the following files:
Generated on Fri Jul 31 12:37:29 2009 for ArNetworking by  doxygen 1.4.7