void FGPropertyManager::SetArchivable (const string &name, bool state ) { SGPropertyNode * node = getNode(name.c_str()); if (node == 0) cerr << "Attempt to set archive flag for non-existent property " << name << endl; else node->setAttribute(SGPropertyNode::ARCHIVE, state); }
void FGPropertyManager::SetWritable (const string &name, bool state ) { SGPropertyNode * node = getNode(name.c_str()); if (node == 0) cerr << "Attempt to set write flag for non-existant property " << name << endl; else node->setAttribute(SGPropertyNode::WRITE, state); }
void FGPropertyNode::SetReadable (const string &name, bool state ) { SGPropertyNode * node = getNode(name.c_str()); if (node == 0) cerr << "Attempt to set read flag for non-existant property " << name << endl; else node->setAttribute(SGPropertyNode::READ, state); }