ARSA Language  2.8
(Encryption, GPU and Web 3.0)
map.h
Go to the documentation of this file.
1 
7 class map
8 {
9 public:
10 
12 
16  int map();
17 
19 
24  int map(const char* element, ...);
25 
28 
33  void set(int id, const char* name, const T& value);
34 
36 
41  const char* get(int id, const char* name);
42 
44 
49  const char* getkeybyid(int id, int num);
50 
52 
57  const char* getvaluebyid(int id, int num);
58 
60 
64  int size(int id);
65 
67 
72  int erase(int id, const char* name);
73 
75 
78  void clear(int id);
79 
81 
85  bool close(int id);
86 
88 
91  void log(int id);
92 
94 
100  bool save(int id, const char* filename, const char* option = "xml");
101 
103 
108  const char* tostring(int id, const char* option = "xml");
109 };
const char * getkeybyid(int id, int num)
Direct key access operator.
void log(int id)
print all elements and value in log window
bool save(int id, const char *filename, const char *option="xml")
save all elements and value to file as xml or json
int erase(int id, const char *name)
Erases an element from the map. .
const char * tostring(int id, const char *option="xml")
save all elements and value to string buffer as xml or json
Definition: map.h:7
void set(int id, const char *name, const T &value)
int map()
Allocate new memory of map.
bool close(int id)
free memory of map
const char * get(int id, const char *name)
Direct const access operator.
int size(int id)
Get number of elements in the map.
void clear(int id)
Clears the map and deletes all allocated memory.
const char * getvaluebyid(int id, int num)
Direct value access operator.