Loading...
Searching...
No Matches
element Struct Reference

#include <SVGTools.H>

Inheritance diagram for element:
Collaboration diagram for element:

Public Member Functions

 element (const word &key, const std::initializer_list< entryType > &styles={}, const std::initializer_list< entryType > &elems={})
template<class Type>
void addAttr (const char *key, const Type &value)
void addAttrStr (const char *key, const string &str)

Public Attributes

const word key_
DynamicList< entryTypestyles_
DynamicList< entryTypeelems_
const word end = "</" + key_ + ">"

Friends

Ostreamoperator<< (Ostream &os, const element &ele)

Detailed Description

Definition at line 57 of file SVGTools.H.

Constructor & Destructor Documentation

◆ element()

element ( const word & key,
const std::initializer_list< entryType > & styles = {},
const std::initializer_list< entryType > & elems = {} )
inline

Definition at line 63 of file SVGTools.H.

Referenced by operator<<.

Here is the caller graph for this function:

Member Function Documentation

◆ addAttr()

template<class Type>
void addAttr ( const char * key,
const Type & value )
inline

Definition at line 76 of file SVGTools.H.

References elems_, and OStringStream::str().

Referenced by graphFunctionObject::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAttrStr()

void addAttrStr ( const char * key,
const string & str )
inline

Definition at line 83 of file SVGTools.H.

References elems_.

◆ operator<<

Ostream & operator<< ( Ostream & os,
const element & ele )
friend

Definition at line 88 of file SVGTools.H.

References e, element(), elems_, key_, os(), s(), and styles_.

Member Data Documentation

◆ key_

const word key_

Definition at line 59 of file SVGTools.H.

Referenced by operator<<.

◆ styles_

Definition at line 60 of file SVGTools.H.

Referenced by operator<<.

◆ elems_

Definition at line 61 of file SVGTools.H.

Referenced by addAttr(), addAttrStr(), and operator<<.

◆ end

const word end = "</" + key_ + ">"

Definition at line 108 of file SVGTools.H.

Referenced by line::operator<<, and text::operator<<.


The documentation for this struct was generated from the following file:
  • src/functionObjects/utilities/graphFunctionObject/SVGTools.H