semilimes mcu sdk 1.1.4 semilimes Software Development Kit for microcontrollers

Loading...
Searching...
No Matches
fc_text_box.h
1#ifndef _fc_text_box_
2#define _fc_text_box_
3
4#include "../defines.h"
5
6 class FcTextBox
7{
8 private:
9 SmeJson json_data;
10 char* json = nullptr;
11
12 public:
13// Function: ~FcTextBox
14
15// distructor of the class, frees up the memory occupied by the array/s
16
17// Prototype:
18// ~FcTextBox()
19
20// Parameters:
21
22// Returns:
24 ~FcTextBox()
25 {
26 delete[] json;
27 json = nullptr;
28 }
29
30// Function: FcTextBox.set
31
32// A text field with a title and a user-editable text field.
33
34// Prototype:
35// void FcTextBox::set(const char* refname,const char* title,const char* value,bool reqSel);
36
37// Parameters:
42
43// Returns:
45 void set(const char* refname,const char* title,const char* value,bool reqSel=false);
46
47// Function: FcTextBox.get
48
49// return the json script
50
51// Prototype:
52// void FcTextBox::get();
53
54// Parameters:
55
56// Returns:
58 char* get();
59};
60
61#endif
FcTextBox
Definition fc_text_box.h:7
FcTextBox::~FcTextBox
~FcTextBox()
Definition fc_text_box.h:24
FcTextBox::set
void set(const char *refname, const char *title, const char *value, bool reqSel=false)
Definition fc_text_box.cpp:19
FcTextBox::get
char * get()
Definition fc_text_box.cpp:44