19 #ifndef SIMPLE_M2M_RESOURCE_H    20 #define SIMPLE_M2M_RESOURCE_H    27 #if MBED_CLOUD_CLIENT_STL_API    38 class SimpleM2MResourceBase {
    43     SimpleM2MResourceBase();
    46     SimpleM2MResourceBase& operator=( 
const SimpleM2MResourceBase&  );
    49     SimpleM2MResourceBase( 
const M2MBase&  );
    56     virtual ~SimpleM2MResourceBase();
    70     bool define_resource_internal(
string v,
    71                                   M2MBase::Operation opr,
    92     bool set(
const int& v);
   101     bool set_post_function(
void(*fn)(
void*));
   110     bool set_post_function(execute_callback fn);
   117     M2MResource* get_resource();
   123     virtual void update(){}
   133     vector<string> parse_route(
const char* route);
   147 class SimpleM2MResourceString : 
public SimpleM2MResourceBase
   166                    M2MBase::Operation opr = M2MBase::GET_PUT_ALLOWED,
   167                    bool observable = 
true,
   168                    FP1<void, string> on_update = NULL) m2m_deprecated;
   185                    M2MBase::Operation opr,
   187                    void(*on_update)(
string)) m2m_deprecated;
   193     virtual ~SimpleM2MResourceString();
   198     string operator=(const 
string& new_value);
   203     operator 
string() const;
   209     virtual 
void update();
   212     FP1<
void, 
string>                   _on_update;
   222 class SimpleM2MResourceInt : public SimpleM2MResourceBase
   241                 M2MBase::Operation opr = M2MBase::GET_PUT_ALLOWED,
   242                 bool observable = 
true,
   243                 FP1<void, int> on_update = NULL) m2m_deprecated;
   260                 M2MBase::Operation opr,
   262                 void(*on_update)(
int)) m2m_deprecated;
   267     virtual ~SimpleM2MResourceInt();
   272     int operator=(
int new_value);
   277     operator 
int() const;
   283     virtual 
void update();
   286     FP1<
void, 
int>                  _on_update;
   291 #endif // SIMPLE_M2M_RESOURCE_H Definition: MbedCloudClient.h:85
 
MbedCloudClient. This class provides an interface for handling all the client interface operations in...