FaspManagerLocation.h
Go to the documentation of this file.
1 
7 #ifndef __FASP_MANAGER_LOCATION_H__
8 #define __FASP_MANAGER_LOCATION_H__
9 
10 #include "FaspManagerTypes.h"
11 
12 namespace Aspera
13 {
14 namespace FaspManager
15 {
16 
21 class Location
22 {
23  /* Member functions */
24  public:
25 
27  FASP_MANAGER_API static Location * CreateLocal( );
28 
34  FASP_MANAGER_API static Location * CreateRemote( const char * host, const char* user, const char* passwd );
35 
42  FASP_MANAGER_API static Location * CreateRemote( const char* host, const char* user, const char* identity, const char* passphrase );
43 
52  FASP_MANAGER_API void SetByteRange(u_int64_t start, u_int64_t end);
53 
55  FASP_MANAGER_API void Destroy( );
56 
60  FASP_MANAGER_API Location( const Location &loc );
61 
65  FASP_MANAGER_API virtual bool IsRemote( ) const = 0;
66 
71  FASP_MANAGER_API virtual char* GetHostname( ) const = 0;
72 
77  FASP_MANAGER_API virtual char* GetUsername( ) const = 0;
78 
83  FASP_MANAGER_API virtual char* GetPassword( ) const = 0;
84 
86  FASP_MANAGER_API virtual char* GetIdentity( ) const = 0;
87 
94  FASP_MANAGER_API virtual void AddFilepath( char const* path ) = 0;
95 
99  FASP_MANAGER_API virtual void AddFilepath( char const* source, char const* destination ) = 0;
100 
101  protected:
103  FASP_MANAGER_API Location( );
104 
106  FASP_MANAGER_API virtual ~Location( ) = 0;
107 
108 };
109 
110 } /* namespace FaspManager */
111 } /* namespace Aspera */
112 
113 #endif /* __FASP_MANAGER_LOCATION_H__ */
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

Copyright © 2005 - 2016 Aspera, an IBM company. | asperasoft.com