This is the sample program that can see the decode result of barcode data on Watson IoT.
Dependencies: AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice
Resource< InnerType > Class Template Reference
#include <Resource.h>
Public Member Functions | |
Resource (const Logger *logger, const string obj_name, const string res_name, InnerType value) | |
Default constructor. | |
Resource (const Resource< InnerType > &resource) | |
Copy constructor. | |
virtual | ~Resource () |
Destructor. | |
string | getObjName () |
Get the Object name. | |
string | getResName () |
Get the Resource name. | |
string | getFullName () |
Get the Full 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 *ep)=0 |
Bind resource to endpoint. | |
void | setOptions (const void *options) |
set the options | |
void | setEndpoint (const void *endpoint) |
set the endpoint | |
int | getInstanceNumber () |
Get our Instance Number. | |
void | setInstanceNumber (int instance_number) |
Set our Instance Number. |
Detailed Description
template<typename InnerType>
class Resource< InnerType >
Resource class.
Definition at line 43 of file Resource.h.
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
resource input the Resource that is to be deep copied
Definition at line 77 of file Resource.h.
virtual ~Resource | ( | ) | [virtual] |
Destructor.
Definition at line 90 of file Resource.h.
Member Function Documentation
virtual void bind | ( | void * | ep ) | [pure virtual] |
Bind resource to endpoint.
- Parameters:
-
ep input pointer to the Endpoint instance
Implemented in DynamicResource, and StaticResource.
string getFullName | ( | ) |
int getInstanceNumber | ( | ) |
string getObjName | ( | ) |
string getResName | ( | ) |
InnerType getValue | ( | ) |
Get the resource value.
- Returns:
- the value of the resource
Definition at line 124 of file Resource.h.
void setEndpoint | ( | const void * | endpoint ) |
set the endpoint
Definition at line 165 of file Resource.h.
void setInstanceNumber | ( | int | instance_number ) |
Set our Instance Number.
- Parameters:
-
instance_number input our designated instance number
Definition at line 182 of file Resource.h.
void setName | ( | const string | name ) |
Set the resource name.
- Parameters:
-
name input the resource name
Definition at line 132 of file Resource.h.
void setOptions | ( | const void * | options ) |
set the options
Definition at line 158 of file Resource.h.
void setValue | ( | const InnerType | value ) |
Set the resource value.
- Parameters:
-
value input the resource value
Definition at line 140 of file Resource.h.
Generated on Tue Jul 12 2022 18:38:06 by 1.7.2