semilimes mcu sdk 1.1.4 semilimes Software Development Kit for microcontrollers

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