Raspberry Cloud
Public Member Functions | List of all members
LocalCloudAdapter Class Reference

#include <LocalCloudAdapter.h>

Inheritance diagram for LocalCloudAdapter:
CloudAdapter

Public Member Functions

 LocalCloudAdapter (string _cloudID)
 
bool upload (CloudFile cloudFile)
 
Fragmentdownload (CloudFile cloudFile)
 
bool deleteFile (CloudFile cloudFile)
 
bool auth ()
 
long getSize (CloudFile cloudFile)
 
bool checkExists (CloudFile cloudFile)
 
- Public Member Functions inherited from CloudAdapter
 CloudAdapter (string _cloudID)
 

Additional Inherited Members

- Public Attributes inherited from CloudAdapter
string cloudID
 

Detailed Description

LocalCloudAdapter class implements CloudAdapter used to test the cloudAdapter interface while real clouds are not used

Constructor & Destructor Documentation

LocalCloudAdapter::LocalCloudAdapter ( string  _cloudID)

LocalCloudAdapter implementation

Member Function Documentation

bool LocalCloudAdapter::auth ( )
virtual

Established authentication

Returns
successful

Implements CloudAdapter.

bool LocalCloudAdapter::checkExists ( CloudFile  cloudFile)
virtual

Checks if the file exists.

Parameters
cloudFiledescriptor of the file to check
Returns
true if the file exists, false otherwise

Implements CloudAdapter.

bool LocalCloudAdapter::deleteFile ( CloudFile  cloudFile)
virtual

Deletes a file from the cloud

Parameters
cloudFilefile to download
Returns
successful

Implements CloudAdapter.

Fragment * LocalCloudAdapter::download ( CloudFile  cloudFile)
virtual

Downloads a file from the cloud

Parameters
cloudFilefile to download
Returns
a downloaded file-fragment

Implements CloudAdapter.

long LocalCloudAdapter::getSize ( CloudFile  cloudFile)
virtual

Measures a files size on the cloud

Parameters
cloudFilefile to measure
Returns
size of file

Implements CloudAdapter.

bool LocalCloudAdapter::upload ( CloudFile  cloudFile)
virtual

Uploads a file to the cloud

Parameters
cloudFilefile to upload
Returns
successful

Implements CloudAdapter.


The documentation for this class was generated from the following files: