nfd::tools::nfdc::xml Namespace Reference

Classes

struct  Flag
 print true as an empty element and false as nothing More...
 
struct  Text
 

Functions

std::string formatDuration (time::nanoseconds d)
 
std::string formatTimestamp (time::system_clock::TimePoint t)
 
std::ostream & operator<< (std::ostream &os, const Text &text)
 print XML text with special character represented as predefined entities More...
 
std::ostream & operator<< (std::ostream &os, Flag v)
 
void printFooter (std::ostream &os)
 
void printHeader (std::ostream &os)
 

Function Documentation

std::string nfd::tools::nfdc::xml::formatDuration ( time::nanoseconds  d)
Returns
duration in XML duration format

Definition of this format: https://www.w3.org/TR/xmlschema11-2/#duration

Definition at line 88 of file format-helpers.cpp.

std::string nfd::tools::nfdc::xml::formatTimestamp ( time::system_clock::TimePoint  t)
Returns
timestamp in XML dateTime format

Definition of this format: https://www.w3.org/TR/xmlschema11-2/#dateTime

Definition at line 113 of file format-helpers.cpp.

std::ostream & nfd::tools::nfdc::xml::operator<< ( std::ostream &  os,
const Text text 
)

print XML text with special character represented as predefined entities

Definition at line 51 of file format-helpers.cpp.

std::ostream & nfd::tools::nfdc::xml::operator<< ( std::ostream &  os,
Flag  v 
)

Definition at line 79 of file format-helpers.cpp.

void nfd::tools::nfdc::xml::printFooter ( std::ostream &  os)

Definition at line 45 of file format-helpers.cpp.

void nfd::tools::nfdc::xml::printHeader ( std::ostream &  os)

Definition at line 38 of file format-helpers.cpp.