semilimes mcu sdk 1.1.4 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
fc_label.h
1#ifndef _fc_label_
2#define _fc_label_
3
4#include "../defines.h"
5
6 class FcLabel
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~FcLabel
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~FcLabel()
19
20// Parameters:
21
22// Returns:
24 ~FcLabel()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: FcLabel.set
31
32// A simple read-only label
33
34// Prototype:
35// void FcLabel::set(const char* refname,const char* title);
36
37// Parameters:
40
41// Returns:
43 void set(const char* refname,const char* title);
44
45// Function: FcLabel.get
46
47// return the json script
48
49// Prototype:
50// void FcLabel::get();
51
52// Parameters:
53
54// Returns:
56 char* get();
57};
58
59#endif
FcLabel
Definition fc_label.h:7
FcLabel::get
char * get()
Definition fc_label.cpp:39
FcLabel::~FcLabel
~FcLabel()
Definition fc_label.h:24
FcLabel::set
void set(const char *refname, const char *title)
Definition fc_label.cpp:17