observe updates
Fork of mbedConnectorInterface by
StaticResource Class Reference
StaticResource is a static (GET only) resource with a value type pinned as a string type. More...
#include <StaticResource.h>
Inherits Resource< string >.
Public Member Functions | |
StaticResource (const Logger *logger, const char *name, const char *value) | |
Default constructor. | |
StaticResource (const Logger *logger, const char *name, const string value) | |
string value constructor | |
StaticResource (const Logger *logger, const string name, const string value) | |
constructor with buffer lengths | |
StaticResource (const StaticResource &resource) | |
Copy constructor. | |
virtual | ~StaticResource () |
Destructor. | |
virtual void | bind (void *p) |
Bind resource to endpoint. | |
void | setDataWrapper (DataWrapper *data_wrapper) |
Set the data wrapper. | |
string | getName () |
Get the resource name. | |
string | getValue () |
Get the resource value. | |
void | setName (const string name) |
Set the resource name. | |
void | setValue (const stringvalue) |
Set the resource value. |
Detailed Description
StaticResource is a static (GET only) resource with a value type pinned as a string type.
Definition at line 37 of file StaticResource.h.
Constructor & Destructor Documentation
StaticResource | ( | const Logger * | logger, |
const char * | name, | ||
const char * | value | ||
) |
Default constructor.
- Parameters:
-
logger input logger instance for this resource name input the Resource URI/Name value input the Resource value (a string)
Definition at line 29 of file StaticResource.cpp.
StaticResource | ( | const Logger * | logger, |
const char * | name, | ||
const string | value | ||
) |
string value constructor
- Parameters:
-
logger input logger instance for this resource name input the Resource URI/Name value input the Resource value (a string)
Definition at line 34 of file StaticResource.cpp.
StaticResource | ( | const Logger * | logger, |
const string | name, | ||
const string | value | ||
) |
constructor with buffer lengths
- Parameters:
-
logger input logger instance for this resource name input the Resource URI/Name param name_length input the length of the Resource URI/Name value input the Resource value (or NULL)
Definition at line 40 of file StaticResource.cpp.
StaticResource | ( | const StaticResource & | resource ) |
Copy constructor.
- Parameters:
-
resource input the StaticResource that is to be deep copied
Definition at line 46 of file StaticResource.cpp.
~StaticResource | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file StaticResource.cpp.
Member Function Documentation
void bind | ( | void * | p ) | [virtual] |
Bind resource to endpoint.
- Parameters:
-
p input pointer to the endpoint resources necessary for binding
Implements Resource< string >.
Definition at line 57 of file StaticResource.cpp.
string getName | ( | ) | [inherited] |
string getValue | ( | ) | [inherited] |
void setDataWrapper | ( | DataWrapper * | data_wrapper ) |
Set the data wrapper.
- Parameters:
-
data_wrapper input the data wrapper instance
Definition at line 86 of file StaticResource.h.
void setName | ( | const string | name ) | [inherited] |
Set the resource name.
- Parameters:
-
name input the resource name
Definition at line 88 of file Resource.h.
void setValue | ( | const string | value ) | [inherited] |
Set the resource value.
- Parameters:
-
value input the resource value
Definition at line 96 of file Resource.h.
Generated on Wed Jul 13 2022 02:11:49 by 1.7.2