OpenTTD Source: src/survey.h Source File

OpenTTD Source 15.0-beta1

survey.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
10#ifndef SURVEY_H
11#define SURVEY_H
12
13#include "3rdparty/nlohmann/json.hpp"
14
15std::string SurveyMemoryToText(uint64_t memory);
16
17void SurveyCompanies(nlohmann::json &survey);
18void SurveyCompiler(nlohmann::json &survey);
19void SurveyGameSession(nlohmann::json &survey);
20void SurveyConfiguration(nlohmann::json &survey);
21void SurveyFont(nlohmann::json &survey);
22void SurveyGameScript(nlohmann::json &survey);
23void SurveyGrfs(nlohmann::json &survey);
24void SurveyLibraries(nlohmann::json &survey);
25void SurveyPlugins(nlohmann::json &survey);
26void SurveyOpenTTD(nlohmann::json &survey);
27void SurveySettings(nlohmann::json &survey, bool skip_if_default);
28void SurveyTimers(nlohmann::json &survey);
29
30/* Defined in os/<os>/survey_<os>.cpp. */
31void SurveyOS(nlohmann::json &json);
32
33#endif /* SURVEY_H */
SurveySettings
void SurveySettings(nlohmann::json &survey, bool skip_if_default)
Convert settings to JSON.
Definition survey.cpp:160
SurveyPlugins
void SurveyPlugins(nlohmann::json &survey)
Convert plugin information to JSON.
Definition survey.cpp:464
SurveyTimers
void SurveyTimers(nlohmann::json &survey)
Convert timer information to JSON.
Definition survey.cpp:339
SurveyGameSession
void SurveyGameSession(nlohmann::json &survey)
Convert game session information to JSON.
Definition survey.cpp:238
SurveyMemoryToText
std::string SurveyMemoryToText(uint64_t memory)
Change the bytes of memory into a textual version rounded up to the biggest unit.
Definition survey.cpp:487
SurveyGameScript
void SurveyGameScript(nlohmann::json &survey)
Convert game-script information to JSON.
Definition survey.cpp:382
SurveyConfiguration
void SurveyConfiguration(nlohmann::json &survey)
Convert generic game information to JSON.
Definition survey.cpp:252
SurveyOpenTTD
void SurveyOpenTTD(nlohmann::json &survey)
Convert generic OpenTTD information to JSON.
Definition survey.cpp:206
SurveyFont
void SurveyFont(nlohmann::json &survey)
Convert font information to JSON.
Definition survey.cpp:295
SurveyCompanies
void SurveyCompanies(nlohmann::json &survey)
Convert company information to JSON.
Definition survey.cpp:308
SurveyCompiler
void SurveyCompiler(nlohmann::json &survey)
Convert compiler information to JSON.
Definition survey.cpp:178
SurveyLibraries
void SurveyLibraries(nlohmann::json &survey)
Convert compiled libraries information to JSON.
Definition survey.cpp:394
SurveyGrfs
void SurveyGrfs(nlohmann::json &survey)
Convert GRF information to JSON.
Definition survey.cpp:355