CMS 3D CMS Logo

Public Member Functions | Private Attributes

LHEXMLStringProduct Class Reference

#include <LHEXMLStringProduct.h>

List of all members.

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.

{
}
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.

{
}

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().

                                                {
    return content_; 
  }
bool LHEXMLStringProduct::mergeProduct ( LHEXMLStringProduct const &  other)

Definition at line 32 of file LHEXMLStringProduct.cc.

References content_, and getStrings().

{
  content_.insert(content_.end(), other.getStrings().begin(), other.getStrings().end());  
  return true;
}

Member Data Documentation

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

Definition at line 30 of file LHEXMLStringProduct.h.

Referenced by getStrings(), and mergeProduct().