Avionics
Dropship Simulator
Config.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../rapidxml-1.13/rapidxml.hpp"
4 #include "InterfaceKit.h"
5 #include "Keyboard.h"
6 #include "Analog.h"
7 #include "Spatial.h"
8 #include "apcupsd.h"
9 #include "BASS.h"
10 #include "RakNet.h"
11 #include "TeamSpeak.h"
12 #include "Joystick.h"
13 #include "Modules\Module.h"
14 #include "Rendering\Viewport.h"
15 #include "YouTube.h"
16 #include "Webcam.h"
17 #include "Xplane.h"
18 #include "Devices\Encoder.h"
19 
20 class Config
21 {
22 private:
24 
25  void Config::LoadCommands(rapidxml::xml_node<>* parentNode, std::vector<Command>* commands);
26  void Config::ConfigureDevices(rapidxml::xml_node<>* devices);
27  void Config::ConfigureModules(rapidxml::xml_node<>* modules, std::vector<Module*>* prmModules, Bus* prmBus, Logger* prmLogger) const;
28  void Config::ConfigureViewport(rapidxml::xml_node<>* viewportNode, Viewport* viewport);
29 
30 public:
31  std::vector<Devices::InterfaceKitConfig> interfaceKitConfigs;
32  std::vector<Devices::AnalogConfig> analogConfigs;
33  std::vector<Devices::EncoderConfig> encoderConfigs;
37  std::vector<Devices::BassConfig> bassConfigs;
40  std::vector<Devices::JoystickConfig> joystickConfigs;
44 
45 // Config();
46  void Initialize(Logger* logger, std::vector<Module*>* modules, Bus* prmBus, Viewport* viewport, WCHAR* configFile);
47 };
Viewport viewport
Definition: Avionics.cpp:21
Devices::SpatialConfig spatialConfig
Definition: Config.h:35
void ConfigureModules(rapidxml::xml_node<> *modules, std::vector< Module *> *prmModules, Bus *prmBus, Logger *prmLogger) const
Definition: Config.cpp:591
Definition: Logger.h:5
std::vector< Devices::AnalogConfig > analogConfigs
Definition: Config.h:32
Devices::TeamSpeakConfig teamSpeakConfig
Definition: Config.h:39
void ConfigureViewport(rapidxml::xml_node<> *viewportNode, Viewport *viewport)
Definition: Config.cpp:815
void ConfigureDevices(rapidxml::xml_node<> *devices)
Definition: Config.cpp:55
void LoadCommands(rapidxml::xml_node<> *parentNode, std::vector< Command > *commands)
Definition: Config.cpp:786
Definition: Bus.h:12
Definition: Config.h:20
Devices::RakNetConfig rakNetConfig
Definition: Config.h:38
Devices::WebcamConfig webcamConfig
Definition: Config.h:42
Devices::YouTubeConfig youTubeConfig
Definition: Config.h:41
Devices::ApcupsdConfig apcupsdConfig
Definition: Config.h:36
void Initialize(Logger *logger, std::vector< Module *> *modules, Bus *prmBus, Viewport *viewport, WCHAR *configFile)
Definition: Config.cpp:8
std::vector< Module * > modules
Definition: Avionics.cpp:20
Devices::XplaneConfig xplaneConfig
Definition: Config.h:43
std::vector< Devices::InterfaceKitConfig > interfaceKitConfigs
Definition: Config.h:31
std::vector< Devices::EncoderConfig > encoderConfigs
Definition: Config.h:33
std::vector< Devices::JoystickConfig > joystickConfigs
Definition: Config.h:40
std::vector< Devices::BassConfig > bassConfigs
Definition: Config.h:37
Devices::KeyboardConfig keyboardConfig
Definition: Config.h:34
Logger * logger
Definition: Config.h:23