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

#include <ExampleCloudAdapter.h>

Inheritance diagram for ExampleCloudAdapter:
CloudAdapter

Public Member Functions

 ExampleCloudAdapter (string _cloudID)
 
bool upload (CloudFile cloudFile)
 
Fragmentdownload (CloudFile cloudFile)
 
bool deleteFile (CloudFile cloudFile)
 
bool auth ()
 
long getSize (CloudFile cloudFile)
 

Public Attributes

string cloudID
 

Detailed Description

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

Constructor & Destructor Documentation

ExampleCloudAdapter::ExampleCloudAdapter ( string  _cloudID)

ExampleCloudAdapter implementation

Member Function Documentation

bool ExampleCloudAdapter::auth ( )
virtual

Established authentication

Returns
successful

Implements CloudAdapter.

bool ExampleCloudAdapter::deleteFile ( CloudFile  cloudFile)
virtual

Deletes a file from the cloud

Parameters
cloudFilefile to download
Returns
successful

Implements CloudAdapter.

Fragment * ExampleCloudAdapter::download ( CloudFile  cloudFile)
virtual

Downloads a file from the cloud

Parameters
cloudFilefile to download
Returns
a downloaded file-fragment

Implements CloudAdapter.

long ExampleCloudAdapter::getSize ( CloudFile  cloudFile)
virtual

Measures a files size on the cloud

Parameters
cloudFilefile to measure
Returns
size of file

Implements CloudAdapter.

bool ExampleCloudAdapter::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: