gluon-config-mode-geo-location: add checkgen.cpp

This commit is contained in:
Jan-Tarek Butt 2017-08-20 13:53:49 +02:00
parent c0d124a566
commit c38ab4cb6a

View File

@ -0,0 +1,20 @@
#include <sstream>
#include<string>
#include <iostream>
using namespace std;
int main() {
stringstream s;
s << "if need_table('config_mode', nil, false) and need_table('config_mode.geo_location', nil, false) then" << endl;
s << "\tneed_boolean('config_mode.geo_location.show_altitude', false)" << endl;
#ifdef WITHMAP
s << "\tneed_string('config_mode.geo_location.olurl', false)" << endl;
s << "\tneed_number('config_mode.geo_location.map_lon', false)" << endl;
s << "\tneed_number('config_mode.geo_location.map_lat', false)" << endl;
#endif
s << "end" << endl;
cout << s.str();
return 0;
}