X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fcommands.cxx;h=88869848f7e45fea7c84a07784cbc30c7d75a100;hb=5178f69f1847f91832a97f8b6989e826213d82b2;hp=7818b68d10d4a69bc776f159d2b0857557a03e24;hpb=03f844d4bef1abad3f2c66f50105bb76fbbdd7f7;p=simgear.git diff --git a/simgear/misc/commands.cxx b/simgear/misc/commands.cxx index 7818b68d..88869848 100644 --- a/simgear/misc/commands.cxx +++ b/simgear/misc/commands.cxx @@ -5,6 +5,7 @@ // $Id$ #include "commands.hxx" +#include "props_io.hxx" @@ -59,74 +60,4 @@ SGCommandMgr::execute (const string &name, const SGPropertyNode * arg) const return (*command)(arg); } - -bool -SGCommandMgr::execute (const string &name) const -{ - // FIXME - SGPropertyNode node; - return execute(name, &node); -} - - -bool -SGCommandMgr::execute (const string &name, bool value) const -{ - // FIXME - SGPropertyNode node; - node.setBoolValue(value); - return execute(name, &node); -} - - -bool -SGCommandMgr::execute (const string &name, int value) const -{ - // FIXME - SGPropertyNode node; - node.setIntValue(value); - return execute(name, &node); -} - - -bool -SGCommandMgr::execute (const string &name, long value) const -{ - // FIXME - SGPropertyNode node; - node.setLongValue(value); - return execute(name, &node); -} - - -bool -SGCommandMgr::execute (const string &name, float value) const -{ - // FIXME - SGPropertyNode node; - node.setFloatValue(value); - return execute(name, &node); -} - - -bool -SGCommandMgr::execute (const string &name, double value) const -{ - // FIXME - SGPropertyNode node; - node.setDoubleValue(value); - return execute(name, &node); -} - - -bool -SGCommandMgr::execute (const string &name, string value) const -{ - // FIXME - SGPropertyNode node; - node.setStringValue(value); - return execute(name, &node); -} - - // end of commands.cxx