|
|
Line 51: |
Line 51: |
| == Access == | | == Access == |
|
| |
|
| void | | void fgSetReadable (const char * name, bool state); |
| fgSetReadable (const char * name, bool state)
| | void fgSetWritable (const char * name, bool state); |
| {
| |
| SGPropertyNode * node = globals->get_props()->getNode(name);
| |
| if (node == 0)
| |
| SG_LOG(SG_GENERAL, SG_DEBUG,
| |
| "Attempt to set read flag for non-existant property "
| |
| << name);
| |
| else
| |
| node->setAttribute(SGPropertyNode::READ, state);
| |
| }
| |
| | |
| void | |
| fgSetWritable (const char * name, bool state)
| |
| {
| |
| SGPropertyNode * node = globals->get_props()->getNode(name);
| |
| if (node == 0)
| |
| SG_LOG(SG_GENERAL, SG_DEBUG,
| |
| "Attempt to set write flag for non-existant property "
| |
| << name);
| |
| else
| |
| node->setAttribute(SGPropertyNode::WRITE, state);
| |
| }
| |
|
| |
|
| = Tied Properties = | | = Tied Properties = |