git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
32 lines
752 B
C++
32 lines
752 B
C++
|
|
#include <swigmod.h>
|
|
|
|
int is_public(Node* n)
|
|
{
|
|
String* access = Getattr(n, "access");
|
|
return !access || !Cmp(access, "public");
|
|
}
|
|
|
|
int is_private(Node* n)
|
|
{
|
|
String* access = Getattr(n, "access");
|
|
return access && !Cmp(access, "private");
|
|
}
|
|
|
|
int is_protected(Node* n)
|
|
{
|
|
String* access = Getattr(n, "access");
|
|
return access && !Cmp(access, "protected");
|
|
}
|
|
|
|
int is_member_director(Node* parentnode, Node* member)
|
|
{
|
|
int parent_director = parentnode && checkAttribute(parentnode,"feature:director","1");
|
|
int cdecl_nodirector = checkAttribute(member,"feature:nodirector","1");
|
|
return parent_director && !cdecl_nodirector;
|
|
}
|
|
|
|
int is_member_director(Node* member)
|
|
{
|
|
return is_member_director(Getattr(member, "parentNode"), member);
|
|
}
|