当前位置: 首页>>代码示例>>C++>>正文


C++ MemberGroup::docFile方法代码示例

本文整理汇总了C++中MemberGroup::docFile方法的典型用法代码示例。如果您正苦于以下问题:C++ MemberGroup::docFile方法的具体用法?C++ MemberGroup::docFile怎么用?C++ MemberGroup::docFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MemberGroup的用法示例。


在下文中一共展示了MemberGroup::docFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: writeDeclarations


//.........这里部分代码省略.........
                                              cd->anchor(),title,cd->displayName());
            }
            ol.popGeneratorState();
        }
    }
    else if (num>0)
    {
        if (title)
        {
            if (showInline)
            {
                ol.startInlineHeader();
            }
            else
            {
                ol.startMemberHeader(listTypeAsString(m_listType));
            }
            ol.parseText(title);
            if (showInline)
            {
                ol.endInlineHeader();
            }
            else
            {
                ol.endMemberHeader();
            }
        }
        if (subtitle)
        {
            QCString st=subtitle;
            st = st.stripWhiteSpace();
            if (!st.isEmpty())
            {
                ol.startMemberSubtitle();
                ol.generateDoc("[generated]",-1,ctx,0,subtitle,FALSE,FALSE,0,FALSE,FALSE);
                ol.endMemberSubtitle();
            }
        }
    }
    if (num>0)
    {
        // TODO: Two things need to be worked out for proper VHDL output:
        // 1. Signals and types under the group need to be
        //    formatted to associate them with the group somehow
        //    indentation, or at the very least, extra space after
        //    the group is done
        // 2. This might need to be repeated below for memberGroupLists
        if (optimizeVhdl) // use specific declarations function
        {
            VhdlDocGen::writeVhdlDeclarations(this,ol,0,cd,0,0);
        }
        else
        {
            writePlainDeclarations(ol,cd,nd,fd,gd,inheritedFrom,inheritId);
        }

        //printf("memberGroupList=%p\n",memberGroupList);
        if (memberGroupList)
        {
            MemberGroupListIterator mgli(*memberGroupList);
            MemberGroup *mg;
            while ((mg=mgli.current()))
            {
                bool hasHeader=!mg->header().isEmpty() && mg->header()!="[NOHEADER]";
                if (inheritId.isEmpty())
                {
                    //printf("mg->header=%s hasHeader=%d\n",mg->header().data(),hasHeader);
                    ol.startMemberGroupHeader(hasHeader);
                    if (hasHeader)
                    {
                        ol.parseText(mg->header());
                    }
                    ol.endMemberGroupHeader();
                    if (!mg->documentation().isEmpty())
                    {
                        //printf("Member group has docs!\n");
                        ol.startMemberGroupDocs();
                        ol.generateDoc(mg->docFile(),mg->docLine(),ctx,0,mg->documentation()+"\n",FALSE,FALSE);
                        ol.endMemberGroupDocs();
                    }
                    ol.startMemberGroup();
                }
                //printf("--- mg->writePlainDeclarations ---\n");
                mg->writePlainDeclarations(ol,cd,nd,fd,gd,inheritedFrom,inheritId);
                if (inheritId.isEmpty())
                {
                    ol.endMemberGroup(hasHeader);
                }
                ++mgli;
            }
        }
    }
    if (inheritedFrom && cd)
    {
        // also add members that of this list type, that are grouped together
        // in a separate list in class 'inheritedFrom'
        cd->addGroupedInheritedMembers(ol,m_listType,inheritedFrom,inheritId);
    }
    //printf("----- end writeDeclaration() ----\n");
}
开发者ID:vscosta,项目名称:doxygen-yap,代码行数:101,代码来源:memberlist.cpp


注:本文中的MemberGroup::docFile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。