当前位置: 首页>>代码示例>>C++>>正文


C++ InterfaceBlackboard类代码示例

本文整理汇总了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;
}
开发者ID:j-konopka,项目名称:XCSoar-TE,代码行数:57,代码来源:RunAnalysis.cpp

示例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());
}
开发者ID:j-konopka,项目名称:XCSoar-TE,代码行数:22,代码来源:RunAnalysis.cpp

示例3: Calculated

 /**
  * Returns InterfaceBlackboard.Calculated (DERIVED_INFO) (read-only)
  * @return InterfaceBlackboard.Calculated
  */
 gcc_const
 static const DERIVED_INFO& Calculated() { return blackboard.Calculated(); }
开发者ID:Mrdini,项目名称:XCSoar,代码行数:6,代码来源:Interface.hpp

示例4: Basic

 /**
  * Returns InterfaceBlackboard.Basic (NMEA_INFO) (read-only)
  * @return InterfaceBlackboard.Basic
  */
 gcc_const
 static const NMEA_INFO& Basic() { return blackboard.Basic(); }
开发者ID:Mrdini,项目名称:XCSoar,代码行数:6,代码来源:Interface.hpp

示例5: SetSettingsComputer

 /**
  * Returns the InterfaceBlackboard.SettingsComputer (read-write)
  * @return The InterfaceBlackboard.SettingsComputer
  */
 gcc_const
 static SETTINGS_COMPUTER& SetSettingsComputer()
 { return blackboard.SetSettingsComputer(); }
开发者ID:macsux,项目名称:XCSoar,代码行数:7,代码来源:Interface.hpp

示例6:

 /**
  * Returns InterfaceBlackboard.Basic (NMEA_INFO) (read-only)
  * @return InterfaceBlackboard.Basic
  */
 gcc_const
 static const MoreData &Basic() { return blackboard.Basic(); }
开发者ID:macsux,项目名称:XCSoar,代码行数:6,代码来源:Interface.hpp

示例7: SetSettingsMap

 /**
  * Returns the InterfaceBlackboard.SettingsMap (read-write)
  * @return The InterfaceBlackboard.SettingsMap
  */
 gcc_const
 static SETTINGS_MAP& SetSettingsMap()
 { return blackboard.SetSettingsMap(); }
开发者ID:Mrdini,项目名称:XCSoar,代码行数:7,代码来源:Interface.hpp

示例8: GetComputerSettings

 /**
  * Returns the InterfaceBlackboard.ComputerSettings (read-only)
  * @return The InterfaceBlackboard.ComputerSettings
  */
 gcc_const
 static const ComputerSettings& GetComputerSettings()
 { return blackboard.GetComputerSettings(); }
开发者ID:,项目名称:,代码行数:7,代码来源:

示例9: Calculated

 /**
  * Returns InterfaceBlackboard.Calculated (DERIVED_INFO) (read-only)
  * @return InterfaceBlackboard.Calculated
  */
 gcc_const
 static const DerivedInfo& Calculated() { return blackboard.Calculated(); }
开发者ID:macsux,项目名称:XCSoar,代码行数:6,代码来源:Interface.hpp

示例10: SetComputerSettings

 /**
  * Returns the InterfaceBlackboard.ComputerSettings (read-write)
  * @return The InterfaceBlackboard.ComputerSettings
  */
 gcc_const
 static ComputerSettings& SetComputerSettings()
 { return blackboard.SetComputerSettings(); }
开发者ID:,项目名称:,代码行数:7,代码来源:

示例11: GetSystemSettings

 gcc_const
 static const SystemSettings& GetSystemSettings() {
   return blackboard.GetSystemSettings();
 }
开发者ID:damianob,项目名称:xcsoar,代码行数:4,代码来源:Interface.hpp

示例12: ReadBlackboardBasic

 static void ReadBlackboardBasic(const MoreData &nmea_info) {
   blackboard.ReadBlackboardBasic(nmea_info);
 }
开发者ID:macsux,项目名称:XCSoar,代码行数:3,代码来源:Interface.hpp

示例13: BroadcastComputerSettingsUpdate

 static void BroadcastComputerSettingsUpdate() {
   blackboard.BroadcastComputerSettingsUpdate();
 }
开发者ID:,项目名称:,代码行数:3,代码来源:

示例14: BroadcastCalculatedUpdate

 static void BroadcastCalculatedUpdate() {
   blackboard.BroadcastCalculatedUpdate();
 }
开发者ID:,项目名称:,代码行数:3,代码来源:

示例15: BroadcastGPSUpdate

 static void BroadcastGPSUpdate() {
   blackboard.BroadcastGPSUpdate();
 }
开发者ID:,项目名称:,代码行数:3,代码来源:


注:本文中的InterfaceBlackboard类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。