# include <config.h>
#endif
-#include STL_STRING
+#include <string>
#include <vector>
-SG_USING_STD(string);
-SG_USING_STD(vector);
+using std::string;
+using std::vector;
#include <simgear/props/props.hxx>
#include <simgear/structure/subsystem_mgr.hxx>
private:
- SGPropertyNode *switch_node;
+ SGPropertyNode_ptr switch_node;
float rating_amps;
bool circuit_breaker;
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 = "" );
string name;
int num;
string path;
- SGPropertyNode *config_props;
bool enabled;
comp_list outputs;
comp_list connectors;
- SGPropertyNode *_volts_out;
- SGPropertyNode *_amps_out;
+ SGPropertyNode_ptr _volts_out;
+ SGPropertyNode_ptr _amps_out;
};