|
Raspberry Cloud
|
#include <CloudAdapter.h>
Public Member Functions | |
| CloudAdapter (string _cloudID) | |
| virtual bool | upload (CloudFile cloudFile)=0 |
| virtual Fragment * | download (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 |
CloudAdapter class provides an interface to the "cloud" functionality:
| CloudAdapter::CloudAdapter | ( | string | _cloudID | ) |
CloudApater constructor
| _cloudID | the ID of the cloud that is implemented |
CloudAdapter implementation
|
pure virtual |
Established authentication
Implemented in LocalCloudAdapter, and ExampleCloudAdapter.
|
pure virtual |
Checks if the file exists.
| cloudFile | descriptor of the file to check |
Implemented in LocalCloudAdapter.
|
pure virtual |
Deletes a file from the cloud
| cloudFile | file to download |
Implemented in LocalCloudAdapter, and ExampleCloudAdapter.
Downloads a file from the cloud
| cloudFile | file to download |
Implemented in LocalCloudAdapter, and ExampleCloudAdapter.
|
pure virtual |
Measures a files size on the cloud
| cloudFile | file to measure |
Implemented in LocalCloudAdapter, and ExampleCloudAdapter.
|
pure virtual |
Uploads a file to the cloud
| cloudFile | file to upload |
Implemented in LocalCloudAdapter, and ExampleCloudAdapter.
1.8.9.1