From f48203de0acafb1d981d56c79d0edff921102065 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 20 Sep 2018 16:51:14 -0400 Subject: Adding NameSpace tokens and plumbing through some namespce apis --- type.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'type.cpp') diff --git a/type.cpp b/type.cpp index 37b8f131..8ac6ded4 100644 --- a/type.cpp +++ b/type.cpp @@ -385,6 +385,12 @@ NameSpace NameSpace::operator+(const NameSpace& other) const } +bool NameSpace::IsDefaultNameSpace() const +{ + return ((GetString() == DEFAULT_INTERNAL_NAMESPACE) || (GetString() == DEFAULT_EXTERNAL_NAMESPACE)); +} + + BNNameSpace NameSpace::GetAPIObject() const { BNNameSpace result; @@ -406,7 +412,7 @@ void NameSpace::FreeAPIObject(BNNameSpace* name) } -NameSpace NameSpace::FromAPIObject(BNNameSpace* name) +NameSpace NameSpace::FromAPIObject(const BNNameSpace* name) { NameSpace result; for (size_t i = 0; i < name->nameCount; i++) -- cgit v1.3.1