ArmNN
 20.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 38 of file DotSerializer.cpp.

References DotBase::GetStream().

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

◆ HtmlFont() [2/2]

HtmlFont ( std::ostream &  stream)
explicit

Definition at line 62 of file DotSerializer.cpp.

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

◆ ~HtmlFont()

~HtmlFont ( )

Definition at line 66 of file DotSerializer.cpp.

References DotBase::GetStream().

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

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