X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FSystems%2Felectrical.hxx;h=f6f21a4534a653f958f86dd73ab6ae1de2d8af43;hb=91976472206ba8319cc41cd3ff468fec04a52a78;hp=eaba350ccdd7e715f0ab8657707ba25bc7334a23;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Systems/electrical.hxx b/src/Systems/electrical.hxx index eaba350cc..f6f21a453 100644 --- a/src/Systems/electrical.hxx +++ b/src/Systems/electrical.hxx @@ -32,11 +32,11 @@ # include #endif -#include STL_STRING +#include #include -SG_USING_STD(string); -SG_USING_STD(vector); +using std::string; +using std::vector; #include #include @@ -193,7 +193,7 @@ class FGElectricalSwitch { private: - SGPropertyNode *switch_node; + SGPropertyNode_ptr switch_node; float rating_amps; bool circuit_breaker; @@ -251,7 +251,7 @@ public: virtual void unbind (); virtual void update (double dt); - bool build (); + bool build (SGPropertyNode* config_props); float propagate( FGElectricalComponent *node, double dt, float input_volts, float input_amps, string s = "" ); @@ -266,7 +266,6 @@ private: string name; int num; string path; - SGPropertyNode *config_props; bool enabled; @@ -275,8 +274,8 @@ private: comp_list outputs; comp_list connectors; - SGPropertyNode *_volts_out; - SGPropertyNode *_amps_out; + SGPropertyNode_ptr _volts_out; + SGPropertyNode_ptr _amps_out; };