Пример #1
0
        public static string GetNameStr(this ICppQualifiedNamePart namePart)
        {
            CppQualifiedNamePartVisitor cppQualifiedNamePartVisitor = new CppQualifiedNamePartVisitor();

            CppQualifiedNamePartVisitorData cppQualifiedNamePartVisitorData = new CppQualifiedNamePartVisitorData();

            namePart.Accept <CppQualifiedNamePartVisitorResult, CppQualifiedNamePartVisitorData>(cppQualifiedNamePartVisitorData, cppQualifiedNamePartVisitor);

            return(cppQualifiedNamePartVisitor.StringBuilder.ToString().Trim());
        }
Пример #2
0
        public static string GetNameStr(this CppQualifiedName cppQualifiedName)
        {
            if (cppQualifiedName.Name != null)
            {
                ICppQualifiedNamePart namePart = cppQualifiedName.Name;

                CppQualifiedNamePartVisitor cppQualifiedNamePartVisitor = new CppQualifiedNamePartVisitor();

                CppQualifiedNamePartVisitorData cppQualifiedNamePartVisitorData = new CppQualifiedNamePartVisitorData();

                namePart.Accept <CppQualifiedNamePartVisitorResult, CppQualifiedNamePartVisitorData>(cppQualifiedNamePartVisitorData, cppQualifiedNamePartVisitor);

                return(cppQualifiedNamePartVisitor.StringBuilder.ToString().Trim());
            }
            else
            {
                LogManager.Self.Log("QualifiedName.Name is null");
                return("QualifiedName Error");
            }
        }