CMS 3D CMS Logo

LHEXMLStringProduct.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
2 #define SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
3 
8 #include <string>
9 #include <vector>
10 #include <cstdint>
11 
13 public:
14  // constructors, destructors
17  virtual ~LHEXMLStringProduct();
18 
19  // getters
20  const std::vector<std::string>& getStrings() const { return content_; }
21 
22  const std::vector<std::vector<uint8_t> >& getCompressed() const { return compressedContent_; }
23 
24  void fillCompressedContent(std::istream& input, unsigned int initialSize = 4 * 1024 * 1024);
25  void writeCompressedContent(std::ostream& output, unsigned int i) const;
26 
27  // merge method. It will be used when merging different jobs populating the same lumi section
30 
31 private:
32  std::vector<std::string> content_;
33  std::vector<std::vector<uint8_t> > compressedContent_;
34 };
35 
36 #endif // SimDataFormats_GeneratorProducts_LHEXMLStringProduct_h
void swap(LHEXMLStringProduct &other)
static std::string const input
Definition: EdmProvDump.cc:50
void writeCompressedContent(std::ostream &output, unsigned int i) const
const std::vector< std::vector< uint8_t > > & getCompressed() const
const std::vector< std::string > & getStrings() const
std::vector< std::vector< uint8_t > > compressedContent_
std::vector< std::string > content_
bool mergeProduct(LHEXMLStringProduct const &other)
void fillCompressedContent(std::istream &input, unsigned int initialSize=4 *1024 *1024)