semilimes mcu sdk 1.0.1
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
6class FcLabel
7{
8private:
9 #define headerSize 53
10 SmeJson json_data;
11 char* json = nullptr;
12
13public:
14// Function: ~FcLabel
15
16// distructor of the class, frees up the memory occupied by the array/s
17
18// Prototype:
19// ~FcLabel()
20
21// Parameters:
22
23// Returns:
26 {
27 delete[] json;
28 json = nullptr;
29 }
30
31// Function: FcLabel.set
32
33// A simple read-only label
34
35// Prototype:
36// void FcLabel::set(char* refname,char* title);
37
38// Parameters:
41
42// Returns:
44 void set(char* refname,char* title);
45
46// Function: FcLabel.get
47
48// return the json script
49
50// Prototype:
51// void FcLabel::get();
52
53// Parameters:
54
55// Returns:
57 char* get();
58};
59
60#endif
Definition fc_label.h:7
void set(char *refname, char *title)
Definition fc_label.cpp:17
char * get()
Definition fc_label.cpp:39
~FcLabel()
Definition fc_label.h:25