Beispiel #1
0
        public override void WriteClass(LangWriterBase langWriter)
        {
            var cppWriter = TryCastUtil.TryCast <CppWriter>(langWriter);

            WriteHeaderFile(cppWriter);
            WriteSourceFile(cppWriter);
        }
Beispiel #2
0
        public void CreateInnerClass(LangClassBuilderBase classBuilder, AccessModifier accessModifier)
        {
            var cppClassBuilder = TryCastUtil.TryCast <CppClassBuilder>(classBuilder);

            cppClassBuilder._namespaceName = CppWriter.CreateNamespaceString(cppClassBuilder._namespaceName, _className);

            InnerClass innerClass;

            innerClass.classBuilder   = cppClassBuilder;
            innerClass.accessModifier = accessModifier;

            _innerClasses.Add(innerClass);
        }