//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
FGElectricalComponent();
virtual ~FGElectricalComponent() {}
- inline string get_name() { return name; }
+ inline const string& get_name() { return name; }
inline int get_kind() const { return kind; }
}
inline int get_num_props() const { return props.size(); }
- inline string get_prop( const int i ) {
+ inline const string& get_prop( const int i ) {
return props[i];
}
inline void add_prop( const string &s ) {
private:
- SGPropertyNode *switch_node;
+ SGPropertyNode_ptr switch_node;
float rating_amps;
bool circuit_breaker;
comp_list outputs;
comp_list connectors;
- SGPropertyNode *_volts_out;
- SGPropertyNode *_amps_out;
+ SGPropertyNode_ptr _volts_out;
+ SGPropertyNode_ptr _amps_out;
};