acl/app/gson/demo/struct.h

56 lines
978 B
C
Raw Normal View History

2016-10-07 23:07:33 +08:00
#pragma once
struct base
{
2016-10-17 22:44:12 +08:00
std::string string ;
//Gson@optional
std::string *string_ptr ;
int a ;
int *a_ptr ;
unsigned int b ;
2016-10-07 23:07:33 +08:00
unsigned int *b_ptr;
2016-10-17 22:44:12 +08:00
int64_t c ;
int64_t *c_ptr ;
2016-10-07 23:07:33 +08:00
unsigned long d;
2016-10-17 22:44:12 +08:00
unsigned long *d_ptr ;
unsigned long long e ;
2016-10-07 23:07:33 +08:00
unsigned long long *e_ptr;
2016-10-17 22:44:12 +08:00
long f ;
long *f_ptr ;
2016-10-07 23:07:33 +08:00
long long g;
2016-10-17 22:44:12 +08:00
long long *g_ptr ;
2016-10-07 23:07:33 +08:00
acl::string acl_string;
acl::string *acl_string_ptr;
float h;
float *h_ptr;
double i;
double *i_ptr;
};
struct list1
{
base b;
base *b_ptr;
std::list<base> bases_list;
std::list<base> *bases_list_ptr;
2016-10-17 22:44:12 +08:00
//Gson@optional
2016-10-07 23:07:33 +08:00
std::list<base*> *bases_ptr_list_ptr;
2016-10-17 22:44:12 +08:00
std::map<std::string,base> base_map;
2016-12-30 17:10:30 +08:00
std::map<std::string,std::string> string_map;
std::map<std::string, int> int_map;
std::map<std::string, bool > bool_map;
2016-10-17 22:44:12 +08:00
std::map<std::string,std::list<base> > base_list_map;
std::vector<std::string> vector_string;
std::vector<std::list<base> > vector_list_base;
2016-10-07 23:07:33 +08:00
};
2016-10-17 22:44:12 +08:00
namespace hello
{
struct world : list1
{
int me;
};
}