tmplchunk.h

来自「基于Perl的HTTP协议GUI测试程序」· C头文件 代码 · 共 43 行

H
43
字号
/***************************************************************************
                          tmplchunk.h  -  description
                             -------------------
    begin                : Mon Jun 25 2001
    copyright            : (C) 2001 by pelle
    email                : pelle@localhost.localdomain
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef TMPLCHUNK_H
#define TMPLCHUNK_H


/**A chunk of the template, either text or parameter to be substituted
  *@author pelle
  */

class CTmplChunk {
public: 
    CTmplChunk();
    virtual ~CTmplChunk();
    /** Appends this chunk to the end of the list with the given start and end vars */
    void Append(CTmplChunk*& pStart, CTmplChunk*& pEnd);
    /** verifies this chunk against the data given by pos and parm.
     *  pos is incremented by the length of the chunk */
    virtual int CTmplChunk::Verify(const char*& pos, const char* parm);
    /** dump the chunk list */
    virtual void Dump();
public: // Public attributes
    /** Link to the next chunk */
    CTmplChunk* m_pNext;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?