element Struct Reference
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 64 of file SVGTools.H.

Member Function Documentation

◆ addAttr()

void addAttr ( const char *  key,
const Type &  value 
)
inline

Definition at line 76 of file SVGTools.H.

References element::elems_, Foam::glTF::key(), DynamicList< T, SizeMin >::push_back(), 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 element::elems_, Foam::glTF::key(), and DynamicList< T, SizeMin >::push_back().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 88 of file SVGTools.H.

Member Data Documentation

◆ key_

const word key_

Definition at line 59 of file SVGTools.H.

Referenced by Foam::SVG::operator<<().

◆ styles_

Definition at line 60 of file SVGTools.H.

Referenced by Foam::SVG::operator<<().

◆ elems_

Definition at line 61 of file SVGTools.H.

Referenced by element::addAttr(), element::addAttrStr(), and Foam::SVG::operator<<().

◆ end

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

Definition at line 108 of file SVGTools.H.

Referenced by Foam::SVG::operator<<().


The documentation for this struct was generated from the following file: