ArmNN
 24.02
HtmlFont Class Reference

#include <DotSerializer.hpp>

Inheritance diagram for HtmlFont:
[legend]
Collaboration diagram for HtmlFont:
[legend]

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.

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 }

References DotBase::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()

~HtmlFont ( )

Definition at line 66 of file DotSerializer.cpp.

67 {
68  GetStream() << "</FONT>";
69 }

References DotBase::GetStream().


The documentation for this class was generated from the following files:
armnn::DotBase::GetStream
std::ostream & GetStream()
Definition: DotSerializer.hpp:23
armnn::HtmlFont::HtmlFont
HtmlFont(std::ostream &stream, int fontSize, const char *color, const char *face)
Definition: DotSerializer.cpp:38
armnn::DotBase::DotBase
DotBase(std::ostream &stream)
Definition: DotSerializer.hpp:20