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

#include <ComputeOnPi.h>

Inheritance diagram for ComputeOnPi:
HomeNetworkBehaviour

Public Member Functions

 ComputeOnPi (CloudFileSystem &cloudFileSystem)
 
bool addFile (string localFileID, string destinationFileID)
 
string getFile (FileDescriptor fileDescriptor)
 

Detailed Description

ComputeOnPi class implements HomeNetworkBehaviour class it uses the PI to finish the job by sending the request to it it will finish the job using the ComputeOnClient implementation

Member Function Documentation

bool ComputeOnPi::addFile ( string  localFileID,
string  destinationFileID 
)
virtual

Adds a file to the cloud

Parameters
localFileIDpath of file to be added
destinationFileIDpath of file on cloud

ComputeOnPi implementation

Implements HomeNetworkBehaviour.

string ComputeOnPi::getFile ( FileDescriptor  fileDescriptor)
virtual

Gets a file from the cloud

Parameters
fileDescriptorthe descriptor of the file to be retireved
Returns
path of the file retrieved

Implements HomeNetworkBehaviour.


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