26#include <simgear/props/props.hxx>
27#include <simgear/structure/subsystem_mgr.hxx>
36 std::string defaultName);
45 std::string
name()
const {
return _name; }
46 int number()
const {
return _index; }
62 std::string _powerSupplyPath;
64 SGPropertyNode_ptr _serviceableNode;
65 SGPropertyNode_ptr _powerButtonNode;
66 double _minimumSupplyVolts;
67 SGPropertyNode_ptr _powerSupplyNode;
void initServicePowerProperties(SGPropertyNode *node)
virtual bool isPowerSwitchOn() const
void setMinimumSupplyVolts(double v)
void readConfig(SGPropertyNode *config, std::string defaultName)
std::string nodePath() const
void setDefaultPowerSupplyPath(const std::string &p)
specify the default path to use to power the instrument, if it's non- standard.
bool isServiceableAndPowered() const