ArmNN
 21.02
HtmlFont Class Reference

#include <DotSerializer.hpp>

Inheritance diagram for HtmlFont:
DotBase

Public Member Functions

 HtmlFont (std::ostream &stream, int fontSize, const char *color, const char *face)
 
 HtmlFont (std::ostream &stream)
 
 ~HtmlFont ()
 
- Public Member Functions inherited from DotBase
 DotBase (std::ostream &stream)
 
std::ostream & GetStream ()
 

Detailed Description

Definition at line 56 of file DotSerializer.hpp.

Constructor & Destructor Documentation

◆ HtmlFont() [1/2]

HtmlFont ( std::ostream &  stream,
int  fontSize,
const char *  color,
const char *  face 
)
explicit

Definition at line 37 of file DotSerializer.cpp.

References DotBase::GetStream().

38  : DotBase(stream)
39 {
40  GetStream() << "<FONT";
41 
42  if (fontSize > -1)
43  {
44  GetStream() << " POINT-SIZE=" << "\"" << fontSize << "\"";
45  }
46 
47  if (color && std::strlen(color) != 0)
48  {
49  GetStream() << " COLOR=\"" << color << "\" ";
50  }
51 
52  if (face && std::strlen(face) != 0)
53  {
54  GetStream() << " FACE=\"" << face << "\" ";
55  }
56 
57  GetStream() << ">";
58 }
DotBase(std::ostream &stream)
std::ostream & GetStream()

◆ HtmlFont() [2/2]

HtmlFont ( std::ostream &  stream)
explicit

Definition at line 61 of file DotSerializer.cpp.

62  : HtmlFont(stream, -1, nullptr, nullptr)
63 {}
HtmlFont(std::ostream &stream, int fontSize, const char *color, const char *face)

◆ ~HtmlFont()

~HtmlFont ( )

Definition at line 65 of file DotSerializer.cpp.

References DotBase::GetStream().

66 {
67  GetStream() << "</FONT>";
68 }
std::ostream & GetStream()

The documentation for this class was generated from the following files: