RAPP Platform API
 All Classes Namespaces Files Functions Variables Typedefs
rapp::cloud::fetch_personal_data Class Reference

Get all personal data for a specific user. More...

#include <fetch_personal_data.hpp>

Inheritance diagram for rapp::cloud::fetch_personal_data:
Collaboration diagram for rapp::cloud::fetch_personal_data:

Public Member Functions

 fetch_personal_data (const std::string user, std::function< void(const std::string) > callback)
 Constructor for obtained personal (JSON) data for a specific user. More...
 

Private Member Functions

void handle_reply (std::string json)
 

Private Attributes

std::function< void(const
std::string)> 
delegate__
 The callback called upon completion of receiving the detected faces. More...
 

Detailed Description

Get all personal data for a specific user.

Version
1
Date
18-April-2015
Author
Alex Gkiokas a.gki.nosp@m.okas.nosp@m.@orte.nosp@m.lio..nosp@m.co.uk

Definition at line 13 of file fetch_personal_data.hpp.

Constructor & Destructor Documentation

rapp::cloud::fetch_personal_data::fetch_personal_data ( const std::string  user,
std::function< void(const std::string) >  callback 
)

Constructor for obtained personal (JSON) data for a specific user.

Parameters
useris the string username as stored in the database
callbackis the functor that will received the obtained data
Note
this is asynchronous, not serial, execution time may vary

Definition at line 23 of file fetch_personal_data.hpp.

Member Function Documentation

void rapp::cloud::fetch_personal_data::handle_reply ( std::string  json)
private

Get reply and send it directly to delegate

Note
we do not do any parsing at all here

Definition at line 47 of file fetch_personal_data.hpp.

Member Data Documentation

std::function<void(const std::string)> rapp::cloud::fetch_personal_data::delegate__
private

The callback called upon completion of receiving the detected faces.

Definition at line 53 of file fetch_personal_data.hpp.


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