DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::oks::xml Namespace Reference

Functions

const char * bool2str (bool b) noexcept
 
bool str2bool (const char *s) noexcept
 

Variables

const char left_angle_bracket [] = "<"
 
const char right_angle_bracket [] = ">"
 
const char ampersand [] = "&"
 
const char carriage_return [] = "
"
 
const char new_line [] = "
"
 
const char tabulation [] = "	"
 
const char single_quote [] = "'"
 
const char double_quote [] = """
 

Function Documentation

◆ bool2str()

const char * dunedaq::oks::xml::bool2str ( bool b)
inlinenoexcept

Converts boolean to string literal

Definition at line 23 of file xml.hpp.

23{ return (b ? "yes" : "no"); }

◆ str2bool()

bool dunedaq::oks::xml::str2bool ( const char * s)
inlinenoexcept

Converts string literal to boolean

Definition at line 26 of file xml.hpp.

26{ return oks::cmp_str3(s, "yes"); }

Variable Documentation

◆ ampersand

const char dunedaq::oks::xml::ampersand[] = "&"

Definition at line 28 of file xml.cpp.

◆ carriage_return

const char dunedaq::oks::xml::carriage_return[] = "
"

Definition at line 29 of file xml.cpp.

◆ double_quote

const char dunedaq::oks::xml::double_quote[] = """

Definition at line 33 of file xml.cpp.

◆ left_angle_bracket

const char dunedaq::oks::xml::left_angle_bracket[] = "<"

Definition at line 26 of file xml.cpp.

◆ new_line

const char dunedaq::oks::xml::new_line[] = "
"

Definition at line 30 of file xml.cpp.

◆ right_angle_bracket

const char dunedaq::oks::xml::right_angle_bracket[] = ">"

Definition at line 27 of file xml.cpp.

◆ single_quote

const char dunedaq::oks::xml::single_quote[] = "'"

Definition at line 32 of file xml.cpp.

◆ tabulation

const char dunedaq::oks::xml::tabulation[] = "	"

Definition at line 31 of file xml.cpp.