1#ifndef __vtkURIHandler_h
2#define __vtkURIHandler_h
18 void PrintSelf(ostream& os, vtkIndent indent)
override;
26 virtual void StageFileRead (
const char *source,
const char * destination );
27 virtual void StageFileWrite (
const char *source,
const char * destination );
32 const char * destination,
35 const char *hostname);
41 const char *sessionID );
48 virtual int CanHandleURI (
const char * vtkNotUsed(uri) ) {
return 0; };
61 int ProgressCallback(FILE* outputFile,
double dltotal,
double dlnow,
double ultotal,
double ulnow);
63 vtkGetMacro ( RequiresPermission,
int );
64 vtkSetMacro ( RequiresPermission,
int );
69 vtkGetStringMacro (
Name );
70 vtkSetStringMacro (
Name );
76 virtual void InitTransfer ( );
77 virtual int CloseTransfer ( )
82 int RequiresPermission;
virtual void SetLocalFile(FILE *localFile)
Use this function to set LocalFile.
int ProgressCallback(FILE *outputFile, double dltotal, double dlnow, double ultotal, double ulnow)
This function gives us some feedback on how our download is going.
virtual void StageFileRead(const char *source, const char *destination, const char *username, const char *password, const char *hostname)
various Read/Write method footprints useful to redefine in specific handlers.
~vtkURIHandler() override
virtual void StageFileWrite(const char *source, const char *username, const char *password, const char *hostname, const char *sessionID)
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void SetPermissionPrompter(vtkPermissionPrompter *prompter)
virtual int CanHandleURI(const char *vtkNotUsed(uri))
need something that goes the other way too...
void operator=(const vtkURIHandler &)
FILE * LocalFile
local file, it gets passed to C functions in the CURL library
static vtkURIHandler * New()
The Usual vtk class functions.
size_t BufferedWrite(char *buffer, size_t size, size_t nitems)
This function writes the downloaded data in a buffered manner.
vtkURIHandler(const vtkURIHandler &)
virtual void StageFileRead(const char *source, const char *destination)
virtual void StageFileWrite(const char *source, const char *destination)