force a reload
This commit is contained in:
@@ -357,6 +357,24 @@ void PlugIn::generateAircraftReportMessage(const EuroScopePlugIn::CRadarTarget&
|
|||||||
report->set_reporttime(String::splitString(stream.str(), ".")[0]);
|
report->set_reporttime(String::splitString(stream.str(), ".")[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PlugIn::OnCompileCommand(const char* cmdline) {
|
||||||
|
std::string message(cmdline);
|
||||||
|
|
||||||
|
#pragma warning(disable: 4244)
|
||||||
|
std::transform(message.begin(), message.end(), message.begin(), ::toupper);
|
||||||
|
#pragma warning(default: 4244)
|
||||||
|
|
||||||
|
/* no AMAN command */
|
||||||
|
if (0 != message.find(".AMAN"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (std::string::npos != message.find("RELOAD")) {
|
||||||
|
this->validateBackendData();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void PlugIn::OnFunctionCall(int functionId, const char* itemString, POINT pt, RECT area) {
|
void PlugIn::OnFunctionCall(int functionId, const char* itemString, POINT pt, RECT area) {
|
||||||
std::ignore = itemString;
|
std::ignore = itemString;
|
||||||
|
|||||||
@@ -79,6 +79,12 @@ namespace aman {
|
|||||||
*/
|
*/
|
||||||
EuroScopePlugIn::CRadarScreen* OnRadarScreenCreated(const char* displayName, bool needsRadarContent, bool geoReferenced,
|
EuroScopePlugIn::CRadarScreen* OnRadarScreenCreated(const char* displayName, bool needsRadarContent, bool geoReferenced,
|
||||||
bool canBeSaved, bool canBeCreated) override;
|
bool canBeSaved, bool canBeCreated) override;
|
||||||
|
/**
|
||||||
|
* @brief Called as soon as a controller writes down a command
|
||||||
|
* @param[in] cmdline The commandline
|
||||||
|
* @return True if the command was parsed, else false
|
||||||
|
*/
|
||||||
|
bool OnCompileCommand(const char* cmdline) override;
|
||||||
/**
|
/**
|
||||||
* @brief Called as soon as a function is triggered
|
* @brief Called as soon as a function is triggered
|
||||||
* @param[in] functionId The triggered ID
|
* @param[in] functionId The triggered ID
|
||||||
|
|||||||
Reference in New Issue
Block a user