Raspberry Cloud
Public Member Functions | Public Attributes | List of all members
CloudAdapter Class Referenceabstract

#include <CloudAdapter.h>

Inheritance diagram for CloudAdapter:
ExampleCloudAdapter LocalCloudAdapter

Public Member Functions

 CloudAdapter (string _cloudID)
 
virtual bool upload (CloudFile cloudFile)=0
 
virtual Fragmentdownload (CloudFile cloudFile)=0
 
virtual bool deleteFile (CloudFile cloudFile)=0
 
virtual bool auth ()=0
 
virtual long getSize (CloudFile cloudFile)=0
 
virtual bool checkExists (CloudFile cloudFile)=0
 

Public Attributes

string cloudID
 

Detailed Description

CloudAdapter class provides an interface to the "cloud" functionality:

Constructor & Destructor Documentation

CloudAdapter::CloudAdapter ( string  _cloudID)

CloudApater constructor

Parameters
_cloudIDthe ID of the cloud that is implemented

CloudAdapter implementation

Member Function Documentation

virtual bool CloudAdapter::auth ( )
pure virtual

Established authentication

Returns
successful

Implemented in LocalCloudAdapter, and ExampleCloudAdapter.

virtual bool CloudAdapter::checkExists ( CloudFile  cloudFile)
pure virtual

Checks if the file exists.

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

Implemented in LocalCloudAdapter.

virtual bool CloudAdapter::deleteFile ( CloudFile  cloudFile)
pure virtual

Deletes a file from the cloud

Parameters
cloudFilefile to download
Returns
successful

Implemented in LocalCloudAdapter, and ExampleCloudAdapter.

virtual Fragment* CloudAdapter::download ( CloudFile  cloudFile)
pure virtual

Downloads a file from the cloud

Parameters
cloudFilefile to download
Returns
a downloaded file-fragment

Implemented in LocalCloudAdapter, and ExampleCloudAdapter.

virtual long CloudAdapter::getSize ( CloudFile  cloudFile)
pure virtual

Measures a files size on the cloud

Parameters
cloudFilefile to measure
Returns
size of file

Implemented in LocalCloudAdapter, and ExampleCloudAdapter.

virtual bool CloudAdapter::upload ( CloudFile  cloudFile)
pure virtual

Uploads a file to the cloud

Parameters
cloudFilefile to upload
Returns
successful

Implemented in LocalCloudAdapter, and ExampleCloudAdapter.


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