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)
 

Additional Inherited Members

- Public Attributes inherited from std::vector< T >
elements
 STL member. More...
 

Detailed Description

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

Definition at line 81 of file XMLWriter.hpp.

Member Function Documentation

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

Referenced by testNormalization().

void pwiz::minimxml::XMLWriter::Attributes::add ( const std::string &  name,
const int &  value 
)
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: