本文整理汇总了C++中InterfaceBlackboard类的典型用法代码示例。如果您正苦于以下问题:C++ InterfaceBlackboard类的具体用法?C++ InterfaceBlackboard怎么用?C++ InterfaceBlackboard使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了InterfaceBlackboard类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Main
static void
Main()
{
const Waypoints way_points;
InterfaceBlackboard blackboard;
blackboard.SetComputerSettings().SetDefaults();
blackboard.SetComputerSettings().polar.glide_polar_task = GlidePolar(fixed(1));
blackboard.SetUISettings().SetDefaults();
TaskBehaviour task_behaviour;
task_behaviour.SetDefaults();
TaskManager task_manager(task_behaviour, way_points);
task_manager.SetGlidePolar(blackboard.GetComputerSettings().polar.glide_polar_task);
GlideComputerTaskEvents task_events;
task_manager.SetTaskEvents(task_events);
Airspaces airspace_database;
ProtectedTaskManager protected_task_manager(task_manager,
blackboard.GetComputerSettings().task);
LoadFiles(airspace_database);
const TaskFactoryType task_type_default =
blackboard.GetComputerSettings().task.task_type_default;
OrderedTask *task =
protected_task_manager.TaskCreateDefault(&way_points, task_type_default);
if (task != nullptr) {
protected_task_manager.TaskCommit(*task);
delete task;
}
GlideComputer glide_computer(way_points, airspace_database,
protected_task_manager,
task_events);
glide_computer.ReadComputerSettings(blackboard.GetComputerSettings());
glide_computer.SetTerrain(terrain);
glide_computer.SetContestIncremental(false);
glide_computer.Initialise();
LoadReplay(replay, glide_computer, blackboard);
delete replay;
SingleWindow main_window;
main_window.Create(_T("RunAnalysis"),
{640, 480});
dlgAnalysisShowModal(main_window, *look, blackboard, glide_computer,
&protected_task_manager,
&airspace_database,
terrain);
delete terrain;
}
示例2: LoadReplay
static void
LoadReplay(DebugReplay *replay, GlideComputer &glide_computer,
InterfaceBlackboard &blackboard)
{
unsigned i = 0;
while (replay->Next()) {
const MoreData &basic = replay->Basic();
glide_computer.ReadBlackboard(basic);
glide_computer.ProcessGPS();
if (++i == 8) {
i = 0;
glide_computer.ProcessIdle();
}
}
glide_computer.ProcessExhaustive();
blackboard.ReadBlackboardBasic(glide_computer.Basic());
blackboard.ReadBlackboardCalculated(glide_computer.Calculated());
}
示例3: Calculated
/**
* Returns InterfaceBlackboard.Calculated (DERIVED_INFO) (read-only)
* @return InterfaceBlackboard.Calculated
*/
gcc_const
static const DERIVED_INFO& Calculated() { return blackboard.Calculated(); }
示例4: Basic
/**
* Returns InterfaceBlackboard.Basic (NMEA_INFO) (read-only)
* @return InterfaceBlackboard.Basic
*/
gcc_const
static const NMEA_INFO& Basic() { return blackboard.Basic(); }
示例5: SetSettingsComputer
/**
* Returns the InterfaceBlackboard.SettingsComputer (read-write)
* @return The InterfaceBlackboard.SettingsComputer
*/
gcc_const
static SETTINGS_COMPUTER& SetSettingsComputer()
{ return blackboard.SetSettingsComputer(); }
示例6:
/**
* Returns InterfaceBlackboard.Basic (NMEA_INFO) (read-only)
* @return InterfaceBlackboard.Basic
*/
gcc_const
static const MoreData &Basic() { return blackboard.Basic(); }
示例7: SetSettingsMap
/**
* Returns the InterfaceBlackboard.SettingsMap (read-write)
* @return The InterfaceBlackboard.SettingsMap
*/
gcc_const
static SETTINGS_MAP& SetSettingsMap()
{ return blackboard.SetSettingsMap(); }
示例8: GetComputerSettings
/**
* Returns the InterfaceBlackboard.ComputerSettings (read-only)
* @return The InterfaceBlackboard.ComputerSettings
*/
gcc_const
static const ComputerSettings& GetComputerSettings()
{ return blackboard.GetComputerSettings(); }
示例9: Calculated
/**
* Returns InterfaceBlackboard.Calculated (DERIVED_INFO) (read-only)
* @return InterfaceBlackboard.Calculated
*/
gcc_const
static const DerivedInfo& Calculated() { return blackboard.Calculated(); }
示例10: SetComputerSettings
/**
* Returns the InterfaceBlackboard.ComputerSettings (read-write)
* @return The InterfaceBlackboard.ComputerSettings
*/
gcc_const
static ComputerSettings& SetComputerSettings()
{ return blackboard.SetComputerSettings(); }
示例11: GetSystemSettings
gcc_const
static const SystemSettings& GetSystemSettings() {
return blackboard.GetSystemSettings();
}
示例12: ReadBlackboardBasic
static void ReadBlackboardBasic(const MoreData &nmea_info) {
blackboard.ReadBlackboardBasic(nmea_info);
}
示例13: BroadcastComputerSettingsUpdate
static void BroadcastComputerSettingsUpdate() {
blackboard.BroadcastComputerSettingsUpdate();
}
示例14: BroadcastCalculatedUpdate
static void BroadcastCalculatedUpdate() {
blackboard.BroadcastCalculatedUpdate();
}
示例15: BroadcastGPSUpdate
static void BroadcastGPSUpdate() {
blackboard.BroadcastGPSUpdate();
}