ProteoWizard
Public Member Functions | List of all members
pwiz::minimxml::XMLWriter::Attributes Class Reference

vector of name/value pairs to be written as XML attributes More...

#include <XMLWriter.hpp>

Inheritance diagram for pwiz::minimxml::XMLWriter::Attributes:

Public Member Functions

void add (const std::string &name, const double &value)
 
void add (const std::string &name, const int &value)
 
template<typename T >
void add (const std::string &name, const T &value)
 

Detailed Description

vector of name/value pairs to be written as XML attributes

Definition at line 81 of file XMLWriter.hpp.

Member Function Documentation

◆ add() [1/3]

void pwiz::minimxml::XMLWriter::Attributes::add ( const std::string &  name,
const double &  value 
)

Referenced by testNormalization().

◆ add() [2/3]

void pwiz::minimxml::XMLWriter::Attributes::add ( const std::string &  name,
const int &  value 
)

◆ add() [3/3]

template<typename T >
void pwiz::minimxml::XMLWriter::Attributes::add ( const std::string &  name,
const T &  value 
)
inline

Definition at line 88 of file XMLWriter.hpp.

89 {
90 push_back(make_pair(name, boost::lexical_cast<std::string>(value)));
91 }

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