📄 htmltag.h
字号:
//---------------------------------------------------------------------------
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -