A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/html_8hpp_source.html below:

NCBI C++ ToolKit: include/html/html.hpp Source File

1 #ifndef HTML___HTML__HPP 2 #define HTML___HTML__HPP 54 #define CHTML_NAME(Tag) NCBI_NAME2(CHTML_, Tag) 57 #define DECLARE_HTML_ELEMENT_CONSTRUCTORS(Tag, Parent) \ 58  CHTML_NAME(Tag)(void) \ 59  : CParent(sm_TagName) \ 61  CHTML_NAME(Tag)(const char* text) \ 62  : CParent(sm_TagName, text) \ 64  CHTML_NAME(Tag)(const string& text) \ 65  : CParent(sm_TagName, text) \ 67  CHTML_NAME(Tag)(CNCBINode* node) \ 68  : CParent(sm_TagName, node) \ 70  ~CHTML_NAME(Tag)(void) 73 #define DECLARE_HTML_ELEMENT_CONSTRUCTORS_WITH_INIT(Tag, Parent) \ 74  CHTML_NAME(Tag)(void) \ 75  : CParent(sm_TagName) \ 77  CHTML_NAME(Tag)(const char* text) \ 78  : CParent(sm_TagName, text) \ 80  CHTML_NAME(Tag)(const string& text) \ 81  : CParent(sm_TagName, text) \ 83  CHTML_NAME(Tag)(CNCBINode* node) \ 84  : CParent(sm_TagName, node) \ 86  ~CHTML_NAME(Tag)(void) 89 #define DECLARE_HTML_ELEMENT_TYPES(Parent) \ 90  typedef Parent CParent; \ 91  static const char sm_TagName[] 94 #define DECLARE_HTML_ELEMENT_COMMON(Tag, Parent) \ 95  DECLARE_HTML_ELEMENT_TYPES(Parent); \ 97  DECLARE_HTML_ELEMENT_CONSTRUCTORS(Tag, Parent) 100 #define DECLARE_HTML_ELEMENT_COMMON_WITH_INIT(Tag, Parent) \ 101  DECLARE_HTML_ELEMENT_TYPES(Parent); \ 103  DECLARE_HTML_ELEMENT_CONSTRUCTORS_WITH_INIT(Tag, Parent) 106 #define DECLARE_HTML_ELEMENT(Tag, Parent) \ 107 class NCBI_XHTML_EXPORT CHTML_NAME(Tag) : public Parent \ 109  DECLARE_HTML_ELEMENT_COMMON(Tag, Parent); \ 115 #define DECLARE_HTML_SPECIAL_CHAR(Tag, plain) \ 116 class NCBI_XHTML_EXPORT CHTML_NAME(Tag) : public CHTMLSpecialChar \ 118  typedef CHTMLSpecialChar CParent; \ 120  CHTML_NAME(Tag)(int count = 1) \ 121  : CParent(#Tag, plain, count) \ 123  ~CHTML_NAME(Tag)(void) { }; \ 168

AppendPlainText(

text

);

173

AppendPlainText(

text

);

186

AppendPlainText(

text

);

191

AppendPlainText(

text

);

267

eHTMLEncode = 1 << 0,

268

eJSONEncode = 1 << 1,

281  return

m_EncodeMode == eHTMLEncode;

285

m_EncodeMode = noEncode ? eNoEncode : eHTMLEncode;

289

m_EncodeMode = encode_mode;

319

fStripHtmlMode = 1 << 1,

320

fStripTextMode = 1 << 2,

321

fStrip = fStripHtmlMode | fStripTextMode,

323

fEncodeHtmlMode = 1 << 3,

324

fEncodeTextMode = 1 << 4,

325

fEncode = fEncodeHtmlMode | fEncodeTextMode,

327

fEnableBuffering = 0,

328

fDisableBuffering = 1 << 5,

331

fCode = fStripTextMode | fNoEncode,

332

fCodeCompatible = fStripTextMode | fNoEncode | fDisableBuffering,

333

fExample = fNoStrip | fEncodeHtmlMode,

334

fDefault = fCodeCompatible

350  const string

& s)

const

;

549  static const char

sm_TagName[];

557

AppendPlainText(

text

);

562

AppendPlainText(

text

);

590  bool

compact =

false

)

599  bool

compact =

false

)

668

:

CParent

(tagname), m_Parent(0)

677

:

CParent

(tagname, node), m_Parent(0)

685  void

ResetTableCache(

void

);

689  const string

&

value

,

bool

optional);

707  void

ResetTableCache(

void

);

747

{ m_CurrentRow =

row

; m_CurrentCol = col; }

749 

{

return

(m_CurrentRow ==

TIndex

(-1)) ? 0 : m_CurrentRow; }

751 

{

return

(m_CurrentCol ==

TIndex

(-1)) ? 0 : m_CurrentCol; }

768

{

return

NextCell(eHeaderCell); }

770

{

return

NextCell(eDataCell); }

774

{

return

NextRowCell(eHeaderCell); }

776

{

return

NextRowCell(eDataCell); }

779  void

CheckTable(

void

)

const

;

781  TIndex

CalculateNumberOfColumns(

void

)

const

;

782  TIndex

CalculateNumberOfRows(

void

)

const

;

811  void

SetPlainSeparators(

const string

& col_left =

kEmptyStr

,

812  const string

& col_middle =

" "

,

814  const char

row_sep_char =

'-'

,

815

ERowPlainSep is_row_sep = eSkipRowSep);

819  mutable

unique_ptr<CHTML_table_Cache>

m_Cache

;

840

: m_Used(

false

), m_Node(0)

859  void

SetUsed(

void

);

875

m_CellCount(0), m_CellsSize(0), m_Cells(0), m_FilledCellCount(0)

972  void Init

(

const string

& url, EMethod method =

eGet

);

974  void

AddHidden(

const string

& name,

const string

&

value

);

975  void

AddHidden(

const string

& name,

int value

);

1011  void

SetFor(

const string

& idRef);

1022  const string

&

value

);

1041  static const char

sm_InputType[];

1045  const string

& description =

kEmptyStr

);

1048  bool

checked,

const string

& description =

kEmptyStr

);

1057  static const char

sm_InputType[];

1069  static const char

sm_InputType[];

1071  CHTML_image

(

const string

& name,

const string

& src,

1083  static const char

sm_InputType[];

1099  static const char

sm_InputType[];

1103  bool

checked,

const string

& description =

kEmptyStr

);

1112  static const char

sm_InputType[];

1123  static const char

sm_InputType[];

1135  static const char

sm_InputType[];

1147  static const char

sm_InputType[];

1163  static const char

sm_InputType[];

1174  static const char

sm_TagName[];

1200  static const char

sm_TagName[];

1207  bool

selected =

false

,

bool

disabled =

false

);

1209  bool

selected =

false

,

bool

disabled =

false

);

1211  bool

selected =

false

,

bool

disabled =

false

);

1220  static const char

sm_TagName[];

1223  bool

selected =

false

,

bool

disabled =

false

);

1225  bool

selected =

false

,

bool

disabled =

false

);

1227  bool

selected =

false

,

bool

disabled =

false

);

1240  static const char

sm_TagName[];

1248  bool

selected =

false

,

bool

disabled =

false

);

1250  bool

selected =

false

,

bool

disabled =

false

);

1252  bool

selected =

false

,

bool

disabled =

false

);

1262  static const char

sm_TagName[];

1279  static const char

sm_TagName[];

1294  static const char

sm_TagName[];

1304  CHTML_area

(

const string

& href,

int

x1,

int

y1,

int

x2,

int

y2,

1321  CHTML_area

* DefineRect(

int

x1,

int

y1,

int

x2,

int

y2);

1323  CHTML_area

* DefineCircle(

int

x,

int

y,

int

radius);

1327  CHTML_area

* DefinePolygon(vector<int> coords);

1328  CHTML_area

* DefinePolygon(list<int> coords);

1363  CHTML_img

(

const string

& url,

int

width,

int

height,

1366  void

UseMap(

const string

& mapname);

1367  void

UseMap(

const CHTML_map

*

const

mapnode);

1375  static const char

sm_TagName[];

1382  CHTML_dl

* AppendTerm(

const string

& term,

const string

& definition);

1394  static const char

sm_TagName[];

1412  static const char

sm_TagName[];

1425  static const char

sm_TagName[];

1438  static const char

sm_TagName[];

1451  static const char

sm_TagName[];

1457  const char

*

text

);

1459  const string

&

text

);

1463  const string

&

text

);

1465  const char

*

text

);

1469  const string

&

text

);

1471  const char

*

text

);

1475  const string

&

text

);

1477  const char

*

text

);

1481  const string

&

text

);

1483  const char

*

text

);

1486  CHTML_font

* SetTypeFace(

const string

& typeface);

1495  static const char

sm_TagName[];

1520  static const char

sm_TagName[];

1539  static const char

sm_TagName[];

1545  CHTML_meta

(EType mtype,

const string

& var,

const string

& content);

1554  static const char

sm_TagName[];

1557  CHTML_script

(

const string

& stype,

const string

& url);

std::ofstream out("events_result.xml")

main entry point for tests

static const char * column

CHTML_tc * NextRowDataCell(void)

CHTMLElement(const char *tagname)

CHTML_menu(const char *type, bool compact=false)

CHTMLNode * SetHeight(const string &width)

CHTMLInlineElement CParent

CHTML_table * SetColumnWidth(TIndex column, const string &width)

CHTML_ol(int start, const string &type, bool compact=false)

CHTMLNode * SetStyle(const string &style)

CHTML_optgroup * AppendOption(const string &value, const string &label, bool selected=false, bool disabled=false)

CHTMLComment(const char *text)

CHTML_select * AppendOption(const string &value, const char *label, bool selected=false, bool disabled=false)

CHTMLNode(const char *tagname)

#define DECLARE_HTML_ELEMENT_COMMON_WITH_INIT(Tag, Parent)

CHTML_tc * NextCell(ECellType type=eAnyCell)

CHTMLNode * AppendHTMLText(const string &text)

const string & GetText(void) const

#define DECLARE_HTML_ELEMENT(Tag, Parent)

CHTMLNode * SetId(const string &id)

CHTMLNode(const string &tagname, const string &text)

TIndex GetCurrentRow(void) const

bool NoEncode(void) const

CHTML_font(int size, bool absolute, CNCBINode *node=0)

CHTMLSingleElement CParent

const string & GetText(void) const

CHTMLNode(const char *tagname, const string &text)

CHTML_tc * InsertNextRowCell(CNCBINode *node)

virtual void DoAppendChild(CNCBINode *child)

CHTMLOpenElement(const char *tagname, CNCBINode *node)

CHTML_select(const string &name, int size, bool multiple=false)

CHTML_ol(int start, const char *type, bool compact=false)

CHTML_tc * HeaderCell(TIndex row, TIndex column)

CHTMLNode(const char *tagname, CNCBINode *node)

CHTMLNode(const string &tagname, const char *text)

CHTMLSingleElement CParent

CHTMLNode * SetNameAttribute(const string &name)

CHTML_tc * InsertTextAt(TIndex row, TIndex column, const string &text)

CHTMLSingleElement(const char *tagname, const char *text)

#define DECLARE_HTML_SPECIAL_CHAR(Tag, plain)

CHTML_tc * InsertNextRowCell(const string &text)

CHTMLBlockElement(const string &tagname)

unique_ptr< CHTML_table_Cache > m_Cache

CHTMLOpenElement(const char *tagname, const string &text)

CHTMLBlockElement(const char *tagname, const string &text)

CHTML_area * SetHref(const string &href)

CHTML_ol(const string &type, bool compact=false)

TIndex GetCurrentCol(void) const

CHTMLNode * SetWidth(const string &width)

CHTML_font(int size, const char *text)

CHTMLElement(const char *tagname, CNCBINode *node)

CHTML_tc * NextDataCell(void)

CHTMLElement(const char *tagname, const string &text)

CHTMLNode * SetClass(const string &class_name)

CHTMLElement(const string &tagname, const char *text)

CHTML_option(const string &value, const string &label, bool selected=false, bool disabled=false)

CHTML_a * SetHref(const string &href)

CHTML_tc * InsertAt(TIndex row, TIndex column, const string &text)

CHTML_menu(const string &type, bool compact=false)

CHTML_a(const string &href, const string &text)

CHTMLSingleElement CParent

CHTML_map * AddArea(CHTML_area *area)

CHTML_option(const string &value, const char *label, bool selected=false, bool disabled=false)

CHTMLNode * SetWidth(int width)

EEncodeMode GetEncodeMode() const

CHTMLComment(const string &text)

CHTML_font(const string &typeface, int size, const string &text)

CHTML_font(int size, const string &text)

CHTMLSingleElement(const string &tagname, CNCBINode *node)

map< size_t, string > TColWidths

CHTML_area(const string &href, vector< int > coords, const string &alt=kEmptyStr)

CHTMLInlineElement CParent

CHTML_map * AddArea(CNodeRef &area)

CHTML_a(const string &href)

CHTML_option * SetValue(const string &value)

CHTML_tc(const char *tagname, CNCBINode *node)

CHTMLSingleElement(const string &tagname, const string &text)

CHTMLInlineElement(const char *tagname)

CHTMLOpenElement(const char *tagname, const char *text)

CHTMLOpenElement(const string &tagname, CNCBINode *node)

CHTMLListElement * AppendItem(CNCBINode *node)

void SetEncodeMode(EEncodeMode encode_mode)

CHTML_option * SetDisabled(void)

CHTMLSingleElement(const char *tagname, const string &text)

CHTMLOpenElement(const string &tagname, const char *text)

CHTML_select * AppendOption(const string &value, const string &label, bool selected=false, bool disabled=false)

CHTML_hr * SetNoShade(bool noShade)

CHTMLNode * SetColor(const string &color)

CHTML_tc * GetCellNode(void) const

CHTML_ul(bool compact=false)

CHTML_optgroup(const string &label, bool disabled=false)

CHTML_tc(const char *tagname)

CHTML_tc * NextHeaderCell(void)

virtual CNcbiOstream & PrintChildren(CNcbiOstream &out, TMode mode)

EFlags

Conversions to make before printing out the stored text.

TIndex GetRowCount(void) const

CHTML_font(const string &typeface, CNCBINode *node=0)

CHTML_font(const string &typeface, const char *text)

CHTML_optgroup * AppendOption(const string &value, const char *label, bool selected=false, bool disabled=false)

CHTML_hr(int size, bool noShade=false)

CHTMLInlineElement CParent

TIndex GetCellCount(void) const

CHTML_tr * GetRowNode(void) const

CHTML_font(const string &typeface, int size, CNCBINode *node=0)

CHTMLNode * SetAlign(const string &align)

int TFlags

Bitwise OR of "EFlags".

CHTMLNode(const string &tagname, CNCBINode *node)

CHTMLOpenElement(const char *tagname)

CHTML_font(const string &typeface, const string &text)

CHTMLNode * AppendHTMLText(const char *text)

CHTMLNode * SetTitle(const string &title)

CHTML_hr(bool noShade=false)

CHTML_table * SetCellSpacing(int spacing)

CHTML_tr_Cache(const CHTML_tr_Cache &)

CHTML_tc * InsertNextCell(const string &text)

CHTMLNode * SetVAlign(const string &align)

CHTML_tc(const char *tagname, const char *text)

CHTMLInlineElement(const string &tagname)

CHTML_font(int size, bool absolute, const string &text)

CHTMLSingleElement CParent

void SetText(const string &text)

CHTML_font(const string &typeface, int size, const char *text)

CHTMLNode * AppendPlainText(const char *text, bool noEncode=false)

virtual void DoSetAttribute(const string &name, const string &value, bool optional)

CHTML_basefont(const string &typeface)

CHTML_tc * InsertNextCell(CNCBINode *node)

CHTMLBlockElement(const string &tagname, const string &text)

CHTMLBlockElement(const char *tagname, const char *text)

CHTML_area(const string &href, int x, int y, int radius, const string &alt=kEmptyStr)

CHTML_table::TIndex TIndex

CHTMLListElement * AppendItem(const char *text)

CHTML_optgroup * AppendOption(const string &value, bool selected=false, bool disabled=false)

CHTML_hr(int size, const string &width, bool noShade=false)

CHTMLNode(const string &tagname)

CHTML_a(const string &href, const char *text)

CHTML_ol(int start, bool compact=false)

CHTML_select * SetMultiple(void)

CHTML_tc * NextRowCell(ECellType type=eAnyCell)

CNCBINode * AppendChild(CNCBINode *child)

CHTMLElement(const string &tagname, CNCBINode *node)

CHTMLInlineElement CParent

CHTMLSingleElement(const string &tagname, const char *text)

CHTML_area(const string &href, int coords[], int count, const string &alt=kEmptyStr)

CHTML_option(const string &value, bool selected=false, bool disabled=false)

virtual CNcbiOstream & PrintEnd(CNcbiOstream &out, TMode mode)

CHTMLComment(CNCBINode *node)

CHTMLListElement(const char *tagname, const char *type, bool compact=false)

CHTML_color(const string &color, const string &text)

CHTML_map * AddPolygon(const string &href, int coords[], int count, const string &alt=kEmptyStr)

CHTMLNode * SetAccessKey(char key)

CHTMLSingleElement CParent

const string & GetNameAttribute(void) const

CHTML_map * AddPolygon(const string &href, vector< int > coords, const string &alt=kEmptyStr)

CHTML_font * SetFontSize(int size, bool absolute)

CHTMLSingleElement CParent

CHTMLInlineElement(const char *tagname, const string &text)

virtual CNcbiOstream & PrintBegin(CNcbiOstream &out, TMode mode)

CHTMLSingleElement(const char *tagname)

CHTMLInlineElement(const string &tagname, const string &text)

CHTML_hr(int size, int width, bool noShade=false)

CHTML_tc * NextRowHeaderCell(void)

CHTMLInlineElement(const string &tagname, const char *text)

CHTMLBlockElement(const char *tagname, CNCBINode *node)

CHTMLInlineElement CParent

CHTML_ol(const char *type, bool compact=false)

CHTMLOpenElement(const string &tagname)

CHTML_basefont(const string &typeface, int size)

void SetCurrentCell(TIndex row, TIndex col)

CHTML_table_Cache & operator=(const CHTML_table_Cache &)

CHTMLBlockElement(const char *tagname)

CHTML_option * SetSelected(void)

CHTML_ul(const char *type, bool compact=false)

virtual CNcbiOstream & Print(CNcbiOstream &out, TMode mode=eHTML)

CHTML_tr_Cache & operator=(const CHTML_tr_Cache &)

CHTML_tc * InsertAt(TIndex row, TIndex column, CNCBINode *node)

CHTML_menu(bool compact=false)

void SetRowNode(CHTML_tr *rowNode)

CHTML_area(const string &href, int x1, int y1, int x2, int y2, const string &alt=kEmptyStr)

void SetAttribute(const string &name, const string &value)

CHTML_map * AddPolygon(const string &href, list< int > coords, const string &alt=kEmptyStr)

CHTMLInlineElement(const char *tagname, const char *text)

CHTMLOpenElement(const string &tagname, const string &text)

CHTML_ul(const string &type, bool compact=false)

CHTML_font(const string &typeface, int size, bool absolute, CNCBINode *node=0)

CHTMLBlockElement(const string &tagname, CNCBINode *node)

CHTMLNode * SetHeight(int height)

CHTMLElement(const char *tagname, const char *text)

CHTML_font(const string &typeface, int size, bool absolute, const char *text)

CHTMLElement(const string &tagname, const string &text)

CHTML_table_Cache(const CHTML_table_Cache &)

CHTML_map * AddCircle(const string &href, int x, int y, int radius, const string &alt=kEmptyStr)

CHTML_ol(bool compact=false)

CHTMLListElement(const char *tagname, const string &type, bool compact=false)

CHTML_dir(const char *type, bool compact=false)

CHTMLListElement * AppendItem(const string &text)

CHTML_font(const string &typeface, int size, bool absolute, const string &text)

CHTMLNode * SetSize(int size)

CHTMLSingleElement(const char *tagname, CNCBINode *node)

CHTMLElement(const string &tagname)

CHTML_select * AppendOption(const string &value, bool selected=false, bool disabled=false)

void SetText(const string &text)

CHTML_font(int size, CNCBINode *node=0)

CHTML_a(const string &href, CNCBINode *node)

CHTML_optgroup * SetDisabled(void)

CHTML_font(int size, bool absolute, const char *text)

void ResetTableCache(void)

CHTMLNode * SetBgColor(const string &color)

CHTMLBlockElement(const string &tagname, const char *text)

CHTML_tc(const char *tagname, const string &text)

CHTML_table::TIndex TIndex

CHTML_table * SetCellPadding(int padding)

CHTMLListElement(const char *tagname, bool compact=false)

CHTML_select * AppendGroup(CHTML_optgroup *group)

CHTML_tc * DataCell(TIndex row, TIndex column)

CHTML_color(const string &color, CNCBINode *node=0)

CHTMLNode * AppendPlainText(const string &text, bool noEncode=false)

CHTMLInlineElement(const char *tagname, CNCBINode *node)

CHTML_table * SetColumnWidth(TIndex column, int width)

CHTMLNode(const char *tagname, const char *text)

CHTMLSingleElement(const string &tagname)

CHTML_dir(bool compact=false)

CHTML_dir(const string &type, bool compact=false)

CHTML_area(const string &href, list< int > coords, const string &alt=kEmptyStr)

CHTML_select(const string &name, bool multiple=false)

CHTMLInlineElement(const string &tagname, CNCBINode *node)

CHTML_map * AddRect(const string &href, int x1, int y1, int x2, int y2, const string &alt=kEmptyStr)

void SetNoEncode(bool noEncode=true)

CHTML_dl(bool compact=false)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

#define NCBI_XHTML_EXPORT

static const char label[]

@ eHTML

HTML tag or, for example, HTML entity.

HTML library helper classes and functions.

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n th

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n td

static void text(MDB_val *v)

const struct ncbi::grid::netcache::search::fields::SIZE size

const struct ncbi::grid::netcache::search::fields::KEY key

const GenericPointer< typename T::ValueType > T2 value

Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.

void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)

#define row(bind, expected)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4