Пример #1
0
        internal override string GetComponentsMethodsImplementation()
        {
            if (GraphComponent == null)
            {
                throw new InvalidOperationException("GraphComponent for Object " + ClassName + "is empty");
            }
            string result    = "";
            var    functions = new Dictionary <string, string>();

            foreach (var i in _components)
            {
                Glance.MergeDictionary(ref functions, i.GetCppMethodsImplementation());
            }
            Glance.MergeDictionary(ref functions, GraphComponent.GetCppMethodsImplementation());
            foreach (var i in functions)
            {
                if (i.Key != "")
                {
                    result += Glance.GetRetTypeFromSignature(i.Key) + ' ' + ClassName + "::" + Glance.GetSignatureWithoutRetType(i.Key) + '{' + i.Value + '}' + '\n';
                }
            }
            return(result);
        }
Пример #2
0
        internal override string GetComponentsMethodsImplementation()
        {
            string result    = "";
            var    functions = new Dictionary <string, string>();

            foreach (var i in _components)
            {
                Glance.MergeDictionary(ref functions, i.GetCppMethodsImplementation());
            }
            foreach (var i in functions)
            {
                if (i.Key != "")
                {
                    result += Glance.GetRetTypeFromSignature(i.Key) + ' ' + ClassName + "::" + Glance.GetSignatureWithoutRetType(i.Key) + '{' + i.Value + '}' + '\n';
                }
            }
            return(result);
        }