mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
fixed demo compiling error
This commit is contained in:
parent
d800ca468e
commit
1beda872e0
@ -1,7 +1,6 @@
|
||||
#include "stdafx.h"
|
||||
#include "struct.h"
|
||||
#include "struct.gson.h"
|
||||
#include "acl_cpp/serialize/gson_helper.ipp"
|
||||
namespace acl
|
||||
{
|
||||
acl::json_node& gson(acl::json &$json, const base &$obj)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#pragma once#pragma once
|
||||
#pragma once
|
||||
#include <set>
|
||||
|
||||
struct base
|
||||
@ -60,56 +60,3 @@ struct world : list1
|
||||
int me;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
struct base
|
||||
{
|
||||
std::string string ;
|
||||
//Gson@optional
|
||||
std::string *string_ptr ;
|
||||
int a ;
|
||||
int *a_ptr ;
|
||||
unsigned int b ;
|
||||
unsigned int *b_ptr;
|
||||
int64_t c ;
|
||||
int64_t *c_ptr ;
|
||||
unsigned long d;
|
||||
unsigned long *d_ptr ;
|
||||
unsigned long long e ;
|
||||
unsigned long long *e_ptr;
|
||||
long f ;
|
||||
long *f_ptr ;
|
||||
long long g;
|
||||
|
||||
long long *g_ptr ;
|
||||
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;
|
||||
//Gson@optional
|
||||
std::list<base*> *bases_ptr_list_ptr;
|
||||
std::map<std::string,base> base_map;
|
||||
std::map<std::string,std::string> string_map;
|
||||
std::map<std::string,std::list<base> > base_list_map;
|
||||
std::vector<std::string> vector_string;
|
||||
std::vector<std::list<base> > vector_list_base;
|
||||
};
|
||||
|
||||
namespace hello
|
||||
{
|
||||
struct world : list1
|
||||
{
|
||||
int me;
|
||||
};
|
||||
}
|
||||
|
@ -1,115 +1,62 @@
|
||||
#pragma once#pragma once
|
||||
#include <set>
|
||||
|
||||
struct base
|
||||
{
|
||||
std::string string ;
|
||||
//Gson@optional
|
||||
std::string *string_ptr ;
|
||||
int a ;
|
||||
int *a_ptr ;
|
||||
unsigned int b ;
|
||||
unsigned int *b_ptr;
|
||||
int64_t c ;
|
||||
int64_t *c_ptr ;
|
||||
unsigned long d;
|
||||
unsigned long *d_ptr ;
|
||||
unsigned long long e ;
|
||||
unsigned long long *e_ptr;
|
||||
long f ;
|
||||
long *f_ptr ;
|
||||
long long g;
|
||||
|
||||
long long *g_ptr ;
|
||||
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;
|
||||
//Gson@optional
|
||||
std::list<base*> *bases_ptr_list_ptr;
|
||||
std::vector<std::string> vector_string;
|
||||
std::vector<std::list<base> > vector_list_base;
|
||||
|
||||
std::map<std::string, base> base_map;
|
||||
std::map<std::string, std::string> string_map;
|
||||
std::map<std::string, int> int_map;
|
||||
std::map<std::string, bool > bool_map;
|
||||
std::map<std::string, std::list<base> > base_list_map;
|
||||
|
||||
//set
|
||||
std::set<std::string> str_set_;
|
||||
std::set<int> int_set_;
|
||||
std::set<bool> bool_set_;
|
||||
};
|
||||
|
||||
namespace hello
|
||||
{
|
||||
struct world : list1
|
||||
{
|
||||
int me;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
struct base
|
||||
{
|
||||
std::string string ;
|
||||
//Gson@optional
|
||||
std::string *string_ptr ;
|
||||
int a ;
|
||||
int *a_ptr ;
|
||||
unsigned int b ;
|
||||
unsigned int *b_ptr;
|
||||
int64_t c ;
|
||||
int64_t *c_ptr ;
|
||||
unsigned long d;
|
||||
unsigned long *d_ptr ;
|
||||
unsigned long long e ;
|
||||
unsigned long long *e_ptr;
|
||||
long f ;
|
||||
long *f_ptr ;
|
||||
long long g;
|
||||
|
||||
long long *g_ptr ;
|
||||
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;
|
||||
//Gson@optional
|
||||
std::list<base*> *bases_ptr_list_ptr;
|
||||
std::map<std::string,base> base_map;
|
||||
std::map<std::string,std::string> string_map;
|
||||
std::map<std::string,std::list<base> > base_list_map;
|
||||
std::vector<std::string> vector_string;
|
||||
std::vector<std::list<base> > vector_list_base;
|
||||
};
|
||||
|
||||
namespace hello
|
||||
{
|
||||
struct world : list1
|
||||
{
|
||||
int me;
|
||||
};
|
||||
}
|
||||
#pragma once
|
||||
#include <set>
|
||||
|
||||
struct base
|
||||
{
|
||||
std::string string ;
|
||||
//Gson@optional
|
||||
std::string *string_ptr ;
|
||||
int a ;
|
||||
int *a_ptr ;
|
||||
unsigned int b ;
|
||||
unsigned int *b_ptr;
|
||||
int64_t c ;
|
||||
int64_t *c_ptr ;
|
||||
unsigned long d;
|
||||
unsigned long *d_ptr ;
|
||||
unsigned long long e ;
|
||||
unsigned long long *e_ptr;
|
||||
long f ;
|
||||
long *f_ptr ;
|
||||
long long g;
|
||||
|
||||
long long *g_ptr ;
|
||||
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;
|
||||
//Gson@optional
|
||||
std::list<base*> *bases_ptr_list_ptr;
|
||||
std::vector<std::string> vector_string;
|
||||
std::vector<std::list<base> > vector_list_base;
|
||||
|
||||
std::map<std::string, base> base_map;
|
||||
std::map<std::string, std::string> string_map;
|
||||
std::map<std::string, int> int_map;
|
||||
std::map<std::string, bool > bool_map;
|
||||
std::map<std::string, std::list<base> > base_list_map;
|
||||
|
||||
//set
|
||||
std::set<std::string> str_set_;
|
||||
std::set<int> int_set_;
|
||||
std::set<bool> bool_set_;
|
||||
};
|
||||
|
||||
namespace hello
|
||||
{
|
||||
struct world : list1
|
||||
{
|
||||
int me;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user