htmltag.h
来自「把html转成txt 把html转成txt」· C头文件 代码 · 共 50 行
H
50 行
//---------------------------------------------------------------------------
#ifndef HtmlTagH
#define HtmlTagH
//---------------------------------------------------------------------------
#include <map>
#include <string>
#include <istream>
#include <ostream>
namespace DoxEngine
{
typedef std::map<std::string, std::string> HtmlTagParameters;
class HtmlTag
{
private:
std::string element;
HtmlTagParameters parameters;
bool beginning;
bool end;
bool comment;
void ReadComment( std::istream &in );
public:
HtmlTag( std::istream &in );
HtmlTag( std::ostream &out );
std::string GetParameter( const std::string &name );
void SetParameter( const std::string &name, const std::string &value );
std::string GetElement();
void SetElement( const std::string &value );
bool IsBeginning();
bool IsEnd();
bool IsComment();
void SetBeginning( bool value );
void SetEnd( bool value );
void ReadTag( std::istream &in );
void WriteTag( std::ostream &out );
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?