Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedConnectorInterface by
Resource< InnerType > Class Template Reference
#include <Resource.h>
Public Member Functions | |
| Resource (const Logger *logger, const string name, InnerType value) | |
| Default constructor. | |
| Resource (const Resource< InnerType > &resource) | |
| Copy constructor. | |
| virtual | ~Resource () |
| Destructor. | |
| string | getName () |
| Get the resource name. | |
| InnerType | getValue () |
| Get the resource value. | |
| void | setName (const string name) |
| Set the resource name. | |
| void | setValue (const InnerType value) |
| Set the resource value. | |
| virtual void | bind (void *p)=0 |
| Bind resource to endpoint. | |
| void | setOptions (const void *options) |
| set the options | |
Detailed Description
template<typename InnerType>
class Resource< InnerType >
Resource class.
Definition at line 34 of file Resource.h.
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
resource input the Resource that is to be deep copied
Definition at line 54 of file Resource.h.
| virtual ~Resource | ( | ) | [virtual] |
Destructor.
Definition at line 65 of file Resource.h.
Member Function Documentation
| virtual void bind | ( | void * | p ) | [pure virtual] |
Bind resource to endpoint.
Implemented in DynamicResource, and StaticResource.
| string getName | ( | ) |
| InnerType getValue | ( | ) |
| void setName | ( | const string | name ) |
Set the resource name.
- Parameters:
-
name input the resource name
Definition at line 88 of file Resource.h.
| void setOptions | ( | const void * | options ) |
set the options
Definition at line 113 of file Resource.h.
| void setValue | ( | const InnerType | value ) |
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:58:57 by
1.7.2
