FGPanelAction * action = new FGPanelAction(button, x, y, w, h);
- vector<const SGPropertyNode *>bindings = node->getChildren("binding");
+ vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
for (unsigned int i = 0; i < bindings.size(); i++) {
SG_LOG(SG_INPUT, SG_INFO, "Reading binding "
<< bindings[i]->getStringValue("command"));
key_nodes = fgGetNode("/input/keyboard", true);
}
- vector<SGPropertyNode *> keys = key_nodes->getChildren("key");
+ vector<SGPropertyNode_ptr> keys = key_nodes->getChildren("key");
for (unsigned int i = 0; i < keys.size(); i++) {
int index = keys[i]->getIndex();
SG_LOG(SG_INPUT, SG_DEBUG, "Binding key " << index);
int modifiers)
{
SG_LOG(SG_INPUT, SG_DEBUG, "Reading all bindings");
- vector<const SGPropertyNode *> bindings = node->getChildren("binding");
+ vector<SGPropertyNode_ptr> bindings = node->getChildren("binding");
for (unsigned int i = 0; i < bindings.size(); i++) {
SG_LOG(SG_INPUT, SG_DEBUG, "Reading binding "
<< bindings[i]->getStringValue("command"));
if (logging == 0)
return;
- vector<SGPropertyNode *> children = logging->getChildren("log");
+ vector<SGPropertyNode_ptr> children = logging->getChildren("log");
for (unsigned int i = 0; i < children.size(); i++) {
_logs.push_back(Log());
Log &log = _logs[_logs.size()-1];
SG_LOG(SG_INPUT, SG_ALERT, "Cannot write log to " << filename);
continue;
}
- vector<SGPropertyNode *> entries = child->getChildren("entry");
+ vector<SGPropertyNode_ptr> entries = child->getChildren("entry");
(*log.output) << "Time";
for (unsigned int j = 0; j < entries.size(); j++) {
SGPropertyNode * entry = entries[j];
const SGPropertyNode * table_node = props->getNode("interpolation");
if (table_node != 0) {
SGInterpTable * table = new SGInterpTable();
- vector<const SGPropertyNode *> entries = table_node->getChildren("entry");
+ vector<SGPropertyNode_ptr> entries = table_node->getChildren("entry");
for (int i = 0; i < entries.size(); i++)
table->addEntry(entries[i]->getDoubleValue("ind", 0.0),
entries[i]->getDoubleValue("dep", 0.0));
_location = (FGLocation *) new FGLocation;
// Load animations
- vector<SGPropertyNode *> animation_nodes = props.getChildren("animation");
+ vector<SGPropertyNode_ptr> animation_nodes = props.getChildren("animation");
unsigned int i;
for (i = 0; i < animation_nodes.size(); i++) {
- vector<SGPropertyNode *> name_nodes =
+ vector<SGPropertyNode_ptr> name_nodes =
animation_nodes[i]->getChildren("object-name");
if (name_nodes.size() < 1) {
Animation * animation = make_animation(0, animation_nodes[i]);
void
FGModelMgr::init ()
{
- vector<SGPropertyNode *> model_nodes =
+ vector<SGPropertyNode_ptr> model_nodes =
fgGetNode("/models", true)->getChildren("model");
for (int i = 0; i < model_nodes.size(); i++) {
SGPropertyNode * node = model_nodes[i];
if (!strcmp(node->getName(), "material")) {
FGNewMat * m = new FGNewMat(node);
- vector<const SGPropertyNode *>names = node->getChildren("name");
+ vector<SGPropertyNode_ptr>names = node->getChildren("name");
for (unsigned int j = 0; j < names.size(); j++) {
string name = names[j]->getStringValue();
m->ref();
//
unsigned int i;
float v = 0.0;
- vector<SGPropertyNode *> kids = node->getChildren("volume");
+ vector<SGPropertyNode_ptr> kids = node->getChildren("volume");
for (i = 0; (i < kids.size()) && (i < FGSound::MAXPROP); i++) {
_snd_prop volume;