24 #include "Reflection.h"
25 #include "Constants.h"
26 #include "HttpRequest.h"
29 #include "HttpResponse.h"
30 #include "HTTPResponseStatus.h"
41 static string generateJsObjects(strVec,
string,
string&,
string,
string &,strVec,
bool,
string&,strVec);
42 static string generateJsInterfaces(strVec,
string,
string&,
string,
string &,
string,map<string, string>);
43 static string updateAjaxInterface(strVec,
string,
string,
string,
string);
44 static void writeTofile(
string,
string,
bool);
46 static string camelCased(
const string&);
47 static string reverseCamelCased(
const string&);
48 static string generateJsObjectsAll(vector<string>,strVec,vector<bool>,
string &,
string &,
string &,vector<string>,
string&,
string&,map<string, string>);
49 static string generateReadObjects(
string type,
string name,
bool priv,
bool ptr,
string typ);
50 static string generateReadVectorObjects(
string type,
string name,
bool priv,
bool ptr,
string typ,
string conttype);
51 static string generateToJSONObjects(
string type,
string name,
bool priv, strVec obj,
int i,
string &retu,
string &headers,
string path,
string &objs,
string typ,
bool ptr);
52 static string generateToJSONVectorObjects(
string type,
string name,
bool priv,
string &retu,
string &headers,
string path,
string &objs,
string typ,
bool ptr,
string stlcnttyp);