CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
LHEXMLStringProduct Class Reference

#include <LHEXMLStringProduct.h>

Public Member Functions

const std::vector< std::string > & getStrings () const
 
 LHEXMLStringProduct ()
 
 LHEXMLStringProduct (const std::string &content)
 
 LHEXMLStringProduct (const std::vector< std::string > &content)
 
bool mergeProduct (LHEXMLStringProduct const &other)
 
virtual ~LHEXMLStringProduct ()
 

Private Attributes

std::vector< std::string > content_
 

Detailed Description

Definition at line 11 of file LHEXMLStringProduct.h.

Constructor & Destructor Documentation

LHEXMLStringProduct::LHEXMLStringProduct ( )

Definition at line 12 of file LHEXMLStringProduct.cc.

13 {
14 }
LHEXMLStringProduct::LHEXMLStringProduct ( const std::string &  content)
LHEXMLStringProduct::LHEXMLStringProduct ( const std::vector< std::string > &  content)
LHEXMLStringProduct::~LHEXMLStringProduct ( )
virtual

Definition at line 28 of file LHEXMLStringProduct.cc.

29 {
30 }

Member Function Documentation

const std::vector<std::string>& LHEXMLStringProduct::getStrings ( ) const
inline

Definition at line 21 of file LHEXMLStringProduct.h.

References content_.

Referenced by mergeProduct().

21  {
22  return content_;
23  }
std::vector< std::string > content_
bool LHEXMLStringProduct::mergeProduct ( LHEXMLStringProduct const &  other)

Definition at line 32 of file LHEXMLStringProduct.cc.

References content_, and getStrings().

33 {
34  content_.insert(content_.end(), other.getStrings().begin(), other.getStrings().end());
35  return true;
36 }
std::vector< std::string > content_

Member Data Documentation

std::vector<std::string> LHEXMLStringProduct::content_
private

Definition at line 30 of file LHEXMLStringProduct.h.

Referenced by getStrings(), and mergeProduct().