7 #ifndef __FASP_MANAGER_LOCATION_H__
8 #define __FASP_MANAGER_LOCATION_H__
34 FASP_MANAGER_API
static Location *
CreateRemote(
const char * host,
const char* user,
const char* passwd );
42 FASP_MANAGER_API
static Location *
CreateRemote(
const char* host,
const char* user,
const char* identity,
const char* passphrase );
52 FASP_MANAGER_API
void SetByteRange(u_int64_t start, u_int64_t end);
55 FASP_MANAGER_API
void Destroy( );
65 FASP_MANAGER_API
virtual bool IsRemote( )
const = 0;
71 FASP_MANAGER_API
virtual char*
GetHostname( )
const = 0;
77 FASP_MANAGER_API
virtual char*
GetUsername( )
const = 0;
83 FASP_MANAGER_API
virtual char*
GetPassword( )
const = 0;
86 FASP_MANAGER_API
virtual char*
GetIdentity( )
const = 0;
94 FASP_MANAGER_API
virtual void AddFilepath(
char const* path ) = 0;
99 FASP_MANAGER_API
virtual void AddFilepath(
char const* source,
char const* destination ) = 0;
106 FASP_MANAGER_API
virtual ~Location( ) = 0;
virtual FASP_MANAGER_API bool IsRemote() const =0
static FASP_MANAGER_API Location * CreateLocal()
Create this local FASP location.
virtual FASP_MANAGER_API char * GetIdentity() const =0
Gets the path to the private key.
FASP_MANAGER_API void SetByteRange(u_int64_t start, u_int64_t end)
virtual FASP_MANAGER_API char * GetPassword() const =0
A class representing a transfer end point.
Definition: FaspManagerLocation.h:21
FASP_MANAGER_API Location()
Constructs this FASP location.
FASP_MANAGER_API void Destroy()
Destroys this FASP location.
C++ namespace for Aspera, Inc.
Definition: Environment.h:10
static FASP_MANAGER_API Location * CreateRemote(const char *host, const char *user, const char *passwd)
virtual FASP_MANAGER_API void AddFilepath(char const *path)=0
virtual FASP_MANAGER_API char * GetUsername() const =0
virtual FASP_MANAGER_API ~Location()=0
Destructs this FASP location.
virtual FASP_MANAGER_API char * GetHostname() const =0