• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ popEnabled函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中popEnabled函数的典型用法代码示例。如果您正苦于以下问题:C++ popEnabled函数的具体用法?C++ popEnabled怎么用?C++ popEnabled使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: pushEnabled

void LatexDocVisitor::visit(DocIncOperator *op)
{   
   if (op->isFirst()) {
      if (!m_hide) {
         m_t << "\n\\begin{DoxyCodeInclude}\n";
      }
      pushEnabled();
      m_hide = true;
   }
   SrcLangExt langExt = getLanguageFromFileName(m_langExt);
   if (op->type() != DocIncOperator::Skip) {
      popEnabled();
      if (!m_hide) {
         Doxy_Globals::parserManager->getParser(m_langExt)
         ->parseCode(m_ci, op->context(), op->text(), langExt,
                     op->isExample(), op->exampleFile());
      }
      pushEnabled();
      m_hide = true;
   }
   if (op->isLast()) {
      popEnabled();
      if (!m_hide) {
         m_t << "\n\\end{DoxyCodeInclude}\n";
      }
   } else {
      if (!m_hide) {
         m_t << endl;
      }
   }
}
开发者ID:klemens-morgenstern,项目名称:doxypress,代码行数:31,代码来源:latexdocvisitor.cpp


示例2: pushEnabled

void LatexDocVisitor::visit(DocIncOperator *op)
{
  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
  //    op->type(),op->isFirst(),op->isLast(),op->text().data());
  if (op->isFirst()) 
  {
    if (!m_hide) m_t << "\n\n\\footnotesize\\begin{verbatim}"; 
    pushEnabled();
    m_hide = TRUE;
  }
  if (op->type()!=DocIncOperator::Skip) 
  {
    popEnabled();
    if (!m_hide) parseCode(m_ci,op->context(),op->text().latin1(),op->isExample(),op->exampleFile());
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())  
  {
    popEnabled();
    if (!m_hide) m_t << "\\end{verbatim}\n\\normalsize" << endl; 
  }
  else
  {
    if (!m_hide) m_t << endl;
  }
}
开发者ID:ceefour,项目名称:aphrodox,代码行数:27,代码来源:latexdocvisitor.cpp


示例3: pushEnabled

void DocbookDocVisitor::visit(DocIncOperator *op)
{
  if (op->isFirst())
  {
    if (!m_hide)
    {
      m_t << "<programlisting>";
    }
    pushEnabled();
    m_hide = TRUE;
  }
  SrcLangExt langExt = getLanguageFromFileName(m_langExt);
  if (op->type()!=DocIncOperator::Skip)
  {
    popEnabled();
    if (!m_hide)
    {
      Doxygen::parserManager->getParser(m_langExt)
        ->parseCode(m_ci,op->context(),
            op->text(),langExt,op->isExample(),
            op->exampleFile());
    }
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())
  {
    popEnabled();
    if (!m_hide) m_t << "</programlisting>";
  }
  else
  {
    if (!m_hide) m_t << endl;
  }
}
开发者ID:CN-Sean,项目名称:doxygen,代码行数:35,代码来源:docbookvisitor.cpp


示例4: pushEnabled

void LatexDocVisitor::visit(DocIncOperator *op)
{
  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
  //    op->type(),op->isFirst(),op->isLast(),op->text().data());
  if (op->isFirst()) 
  {
    if (!m_hide) m_t << "\n\\begin{DoxyCodeInclude}\n";
    pushEnabled();
    m_hide = TRUE;
  }
  SrcLangExt langExt = getLanguageFromFileName(m_langExt);
  if (op->type()!=DocIncOperator::Skip) 
  {
    popEnabled();
    if (!m_hide) 
    {
      Doxygen::parserManager->getParser(m_langExt)
                            ->parseCode(m_ci,op->context(),op->text(),langExt,
                                        op->isExample(),op->exampleFile());
    }
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())  
  {
    popEnabled();
    if (!m_hide) m_t << "\n\\end{DoxyCodeInclude}\n";
  }
  else
  {
    if (!m_hide) m_t << endl;
  }
}
开发者ID:Acidburn0zzz,项目名称:doxygen,代码行数:33,代码来源:latexdocvisitor.cpp


示例5: filter

void DocbookDocVisitor::visitPost(DocImage *img)
{
    if (img->type()==DocImage::Latex)
    {
        if (m_hide) return;
        QCString typevar;
        m_t << "</title>" << endl;
        m_t << "    <mediaobject>" << endl;
        m_t << "        <imageobject>" << endl;
        QCString baseName=img->name();
        int i;
        if ((i=baseName.findRev('/'))!=-1 || (i=baseName.findRev('\\'))!=-1)
        {
            baseName=baseName.right(baseName.length()-i-1);
        }
        m_t << "            <imagedata";
        if (!img->width().isEmpty())
        {
            m_t << " width=\"";
            filter(img->width());
            m_t << "\"";
        }
        else if (!img->height().isEmpty())
        {
            m_t << " depth=\"";
            filter(img->height());
            m_t << "\"";
        }
        m_t << " align=\"center\" fileref=\"" << baseName << "\">";
        m_t << "</imagedata>" << endl;
        m_t << "        </imageobject>" << endl;
        m_t << "    </mediaobject>" << endl;
        m_t << "    </figure>" << endl;
        // copy the image to the output dir
        QCString m_file;
        bool ambig;
        FileDef *fd=findFileDef(Doxygen::imageNameDict, baseName, ambig);
        if (fd)
        {
            m_file=fd->absFilePath();
        }
        QFile inImage(m_file);
        QFile outImage(Config_getString("DOCBOOK_OUTPUT")+"/"+baseName.data());
        if (inImage.open(IO_ReadOnly))
        {
            if (outImage.open(IO_WriteOnly))
            {
                char *buffer = new char[inImage.size()];
                inImage.readBlock(buffer,inImage.size());
                outImage.writeBlock(buffer,inImage.size());
                outImage.flush();
                delete[] buffer;
            }
        }
    }
    else
    {
        popEnabled();
    }
}
开发者ID:kbinani,项目名称:doxygen,代码行数:60,代码来源:docbookvisitor.cpp


示例6: DBG_RTF

void RTFDocVisitor::visit(DocIncOperator *op)
{
  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
  //    op->type(),op->isFirst(),op->isLast(),op->text().data());
  DBG_RTF("{\\comment RTFDocVisitor::visit(DocIncOperator)}\n");
  SrcLangExt langExt = getLanguageFromFileName(m_langExt);
  if (op->isFirst()) 
  {
    if (!m_hide)
    {
      m_t << "{" << endl;
      m_t << "\\par" << endl;
      m_t << rtf_Style_Reset << getStyle("CodeExample");
    }
    pushEnabled();
    m_hide = TRUE;
  }
  if (op->type()!=DocIncOperator::Skip) 
  {
    popEnabled();
    if (!m_hide) 
    {
      Doxygen::parserManager->getParser(m_langExt)
                            ->parseCode(m_ci,op->context(),op->text(),langExt,
                                        op->isExample(),op->exampleFile());
    }
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())  
  {
    popEnabled();
    if (!m_hide)
    {
      m_t << "\\par";
      m_t << "}" << endl;
    }
    m_lastIsPara=TRUE;
  }
  else
  {
    if (!m_hide) m_t << endl;
    m_lastIsPara=FALSE;
  }
}
开发者ID:Acidburn0zzz,项目名称:doxygen,代码行数:45,代码来源:rtfdocvisitor.cpp


示例7: getLanguageFromFileName

void ManDocVisitor::visit(DocIncOperator *op)
{
  SrcLangExt langExt = getLanguageFromFileName(m_langExt);
  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
  //    op->type(),op->isFirst(),op->isLast(),op->text().data());
  if (op->isFirst()) 
  {
    if (!m_hide)
    {
      if (!m_firstCol) m_t << endl;
      m_t << ".PP" << endl;
      m_t << ".nf" << endl;
    }
    pushEnabled();
    m_hide = TRUE;
  }
  if (op->type()!=DocIncOperator::Skip) 
  {
    popEnabled();
    if (!m_hide) 
    {
      Doxygen::parserManager->getParser(m_langExt)
                            ->parseCode(m_ci,op->context(),op->text(),langExt,
                                        op->isExample(),op->exampleFile());
    }
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())  
  {
    popEnabled();
    if (!m_hide)
    {
      if (!m_firstCol) m_t << endl;
      m_t << ".fi" << endl;
      m_t << ".PP" << endl;
      m_firstCol=TRUE;
    }
  }
  else
  {
    if (!m_hide) m_t << endl;
  }
}
开发者ID:AlexFalappa,项目名称:doxygen,代码行数:44,代码来源:mandocvisitor.cpp


示例8: getLanguageFromFileName

void ManDocVisitor::visit(DocIncOperator *op)
{
   SrcLangExt langExt = getLanguageFromFileName(m_langExt);   

   if (op->isFirst()) {
      if (!m_hide) {
         if (!m_firstCol) {
            m_t << endl;
         }

         m_t << ".PP" << endl;
         m_t << ".nf" << endl;
      }
      pushEnabled();
      m_hide = true;
   }

   if (op->type() != DocIncOperator::Skip) {
      popEnabled();
      if (!m_hide) {
         Doxy_Globals::parserManager->getParser(m_langExt)
         ->parseCode(m_ci, op->context(), op->text(), langExt,
                     op->isExample(), op->exampleFile());
      }
      pushEnabled();
      m_hide = true;
   }
   if (op->isLast()) {
      popEnabled();
      if (!m_hide) {
         if (!m_firstCol) {
            m_t << endl;
         }
         m_t << ".fi" << endl;
         m_t << ".PP" << endl;
         m_firstCol = true;
      }
   } else {
      if (!m_hide) {
         m_t << endl;
      }
   }
}
开发者ID:klemens-morgenstern,项目名称:doxypress,代码行数:43,代码来源:mandocvisitor.cpp


示例9: visitPostEnd

void LatexDocVisitor::visitPost(DocImage *img)
{
    if (img->type()==DocImage::Latex)
    {
        if (m_hide) return;
        visitPostEnd(m_t,img->hasCaption());
    }
    else // other format
    {
        popEnabled();
    }
}
开发者ID:LianYangCn,项目名称:doxygen,代码行数:12,代码来源:latexdocvisitor.cpp


示例10: pushEnabled

void ManDocVisitor::visit(DocIncOperator *op)
{
  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
  //    op->type(),op->isFirst(),op->isLast(),op->text().data());
  if (op->isFirst()) 
  {
    if (!m_hide)
    {
      if (!m_firstCol) m_t << endl;
      m_t << ".PP" << endl;
      m_t << ".nf" << endl;
    }
    pushEnabled();
    m_hide = TRUE;
  }
  if (op->type()!=DocIncOperator::Skip) 
  {
    popEnabled();
    if (!m_hide) parseCode(m_ci,op->context(),op->text().latin1(),op->isExample(),op->exampleFile());
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())  
  {
    popEnabled();
    if (!m_hide)
    {
      if (!m_firstCol) m_t << endl;
      m_t << ".fi" << endl;
      m_t << ".PP" << endl;
      m_firstCol=TRUE;
    }
  }
  else
  {
    if (!m_hide) m_t << endl;
  }
}
开发者ID:ceefour,项目名称:aphrodox,代码行数:38,代码来源:mandocvisitor.cpp


示例11: pushEnabled

void XmlDocVisitor::visit(DocIncOperator *op)
{
  //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
  //    op->type(),op->isFirst(),op->isLast(),op->text().data());
  if (op->isFirst()) 
  {
    if (!m_hide)
    {
      m_t << "<programlisting filename=\"" << op->includeFileName() << "\">";
    }
    pushEnabled();
    m_hide = TRUE;
  }
  SrcLangExt langExt = getLanguageFromFileName(m_langExt);
  if (op->type()!=DocIncOperator::Skip) 
  {
    popEnabled();
    if (!m_hide) 
    {
      Doxygen::parserManager->getParser(m_langExt)
                            ->parseCode(m_ci,op->context(),
                                        op->text(),langExt,op->isExample(),
                                        op->exampleFile());
    }
    pushEnabled();
    m_hide=TRUE;
  }
  if (op->isLast())  
  {
    popEnabled();
    if (!m_hide) m_t << "</programlisting>"; 
  }
  else
  {
    if (!m_hide) m_t << endl;
  }
}
开发者ID:vscosta,项目名称:doxygen-yap,代码行数:37,代码来源:xmldocvisitor.cpp


示例12: popEnabled

void LatexDocVisitor::visitPost(DocImage *img) 
{
  if (img->type()==DocImage::Latex)
  {
    if (m_hide) return;
    m_t << "}" << endl; // end mbox or caption
    if (img->hasCaption())
    {
      m_t << "\\end{center}" << endl;
      m_t << "\\end{figure}" << endl;
    }
  }
  else // other format
  {
    popEnabled();
  }
}
开发者ID:ceefour,项目名称:aphrodox,代码行数:17,代码来源:latexdocvisitor.cpp


示例13: popEnabled

void RTFDocVisitor::includePicturePostRTF(const bool isTypeRTF, const bool hasCaption)
{
  if (isTypeRTF)
  {
    if (m_hide) return;
    if (hasCaption)
    {
       m_t << "}" <<endl;
       m_t << "\\par}" <<endl;
    }
    else
    {
       m_t << "}" <<endl;
    }
  }
  else
  {
    popEnabled();
  }
}
开发者ID:BlazesRus,项目名称:doxygen,代码行数:20,代码来源:rtfdocvisitor.cpp


示例14: visitPostEnd

void DocbookDocVisitor::visitPost(DocImage *img)
{
  if (img->type()==DocImage::DocBook)
  {
    if (m_hide) return;
    visitPostEnd(m_t, img -> hasCaption());
    // copy the image to the output dir
    QCString baseName=img->name();
    int i;
    if ((i=baseName.findRev('/'))!=-1 || (i=baseName.findRev('\\'))!=-1)
    {
      baseName=baseName.right(baseName.length()-i-1);
    }
    QCString m_file;
    bool ambig;
    FileDef *fd=findFileDef(Doxygen::imageNameDict, baseName, ambig);
    if (fd) 
    {
      m_file=fd->absFilePath();
    }
    QFile inImage(m_file);
    QFile outImage(Config_getString(DOCBOOK_OUTPUT)+"/"+baseName.data());
    if (inImage.open(IO_ReadOnly))
    {
      if (outImage.open(IO_WriteOnly))
      {
        char *buffer = new char[inImage.size()];
        inImage.readBlock(buffer,inImage.size());
        outImage.writeBlock(buffer,inImage.size());
        outImage.flush();
        delete[] buffer;
      }
    }
  } 
  else 
  {
    popEnabled();
  }
}
开发者ID:Beachy13,项目名称:doxygen,代码行数:39,代码来源:docbookvisitor.cpp


示例15: DBG_RTF

void RTFDocVisitor::visitPost(DocMscFile *) 
{
  DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocMscFile)}\n");
  popEnabled();
}
开发者ID:zellcht,项目名称:group,代码行数:5,代码来源:rtfdocvisitor.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ popFrame函数代码示例发布时间:2022-05-31
下一篇:
C++ pop函数代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap