if(!a) a = "";
if(!strcmp(a, "children")) return naNum((*node)->nChildren());
else if(!strcmp(a, "listeners")) return naNum((*node)->nListeners());
+ else if(!strcmp(a, "references")) return naNum(node->getNumRefs());
else if(!strcmp(a, "tied")) return naNum((*node)->isTied());
else if(!strcmp(a, "alias")) return naNum((*node)->isAlias());
- else if(!strcmp(a, "read")) attr = SGPropertyNode::READ;
- else if(!strcmp(a, "write")) attr = SGPropertyNode::WRITE;
+ else if(!strcmp(a, "readable")) attr = SGPropertyNode::READ;
+ else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE;
else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE;
else if(!strcmp(a, "trace-read")) attr = SGPropertyNode::TRACE_READ;
else if(!strcmp(a, "trace-write")) attr = SGPropertyNode::TRACE_WRITE;
SGPropertyNode::Attribute attr;
char *a = naStr_data(val);
if(!a) a = "";
- if(!strcmp(a, "read")) attr = SGPropertyNode::READ;
- else if(!strcmp(a, "write")) attr = SGPropertyNode::WRITE;
+ if(!strcmp(a, "readable")) attr = SGPropertyNode::READ;
+ else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE;
else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE;
else if(!strcmp(a, "trace-read")) attr = SGPropertyNode::TRACE_READ;
else if(!strcmp(a, "trace-write")) attr = SGPropertyNode::TRACE_WRITE;
static struct {
naCFunction func;
- char* name;
+ const char* name;
} propfuncs[] = {
{ f_getType, "_getType" },
{ f_getAttribute, "_getAttribute" },