return information on objects in a nice format.
More...
|
std::string | getString (const TMatrixFBase &matrix, int precision=2, bool color=true) |
| get HTML table representing a matrix. More...
|
|
std::string | getString (const TMatrixDBase &matrix, int precision=2, bool color=true) |
| get HTML table representing a matrix (double precision). More...
|
|
std::string | getString (const TVector3 &vec, int precision=2) |
| get a string with vector coordinates: (x, y, z). More...
|
|
std::string | getStringConvertToUnit (const TVector3 &vec, int precision=2, const std::string &unitType="cm") |
| get a string with vector coordinates: (x, y, z). More...
|
|
std::string | chooseUnitOfLength (const TVector3 &vec) |
| get a string with a unit type to convert a vector, so that it is easily readable. More...
|
|
std::string | getHexDump (const int *buf, int length) |
| Create hexdump of given buffer. More...
|
|
std::string | htmlToPlainText (const std::string &html) |
| Reformat given HTML string into terminal-friendly plain text.
|
|
std::string | escape (const std::string &str) |
| Convert &, <, > etc. More...
|
|
std::string | unescape (const std::string &str) |
| inverse of escape()
|
|
return information on objects in a nice format.
- See also
- RelationsObject::getInfoHTML()
◆ chooseUnitOfLength()
std::string chooseUnitOfLength |
( |
const TVector3 & |
vec | ) |
|
get a string with a unit type to convert a vector, so that it is easily readable.
valid unit types are (um, cm) for now. the maximum of the vector entries defines the unit.
Definition at line 103 of file HTML.cc.
106 std::string unitType;
110 for (
auto entry : xyz)
111 if (std::abs(entry) > max)
112 max = std::abs(entry);
◆ escape()
std::string escape |
( |
const std::string & |
str | ) |
|
Convert &, <, > etc.
to entities. (not a complete list!)
Definition at line 160 of file HTML.cc.
◆ getHexDump()
std::string getHexDump |
( |
const int * |
buf, |
|
|
int |
length |
|
) |
| |
Create hexdump of given buffer.
- Parameters
-
buf | the buffer |
length | size of buf in 32bit words |
Definition at line 122 of file HTML.cc.
◆ getString() [1/3]
std::string getString |
( |
const TMatrixDBase & |
matrix, |
|
|
int |
precision = 2 , |
|
|
bool |
color = true |
|
) |
| |
get HTML table representing a matrix (double precision).
- Parameters
-
matrix | The matrix to be represented |
precision | The amount of significant digits to use |
color | If true, vary background colour depending on value. |
Definition at line 37 of file HTML.cc.
◆ getString() [2/3]
std::string getString |
( |
const TMatrixFBase & |
matrix, |
|
|
int |
precision = 2 , |
|
|
bool |
color = true |
|
) |
| |
get HTML table representing a matrix.
- Parameters
-
matrix | The matrix to be represented |
precision | The amount of significant digits to use |
color | If true, vary background colour depending on value. |
Definition at line 25 of file HTML.cc.
◆ getString() [3/3]
std::string getString |
( |
const TVector3 & |
vec, |
|
|
int |
precision = 2 |
|
) |
| |
get a string with vector coordinates: (x, y, z).
(uses fixed-length output).
- Parameters
-
vec | the vector to be printend |
precision | The amount of digits to use |
Definition at line 77 of file HTML.cc.
◆ getStringConvertToUnit()
std::string getStringConvertToUnit |
( |
const TVector3 & |
vec, |
|
|
int |
precision = 2 , |
|
|
const std::string & |
unitType = "cm" |
|
) |
| |
get a string with vector coordinates: (x, y, z).
(uses fixed-length output). converts floating point value from standard framework unit to given unit.
- Parameters
-
vec | the vector to be printend |
precision | The amount of digits to use |
unitType | Defines the unit to convert the vector values from standard framework unit. |
Definition at line 86 of file HTML.cc.