Simple class to decode a ROOT compression settings string, of the form '<Alg>:<level>' into the integer code to pass to ROOT.
More...
#include <RootCompressionSettings.h>
Simple class to decode a ROOT compression settings string, of the form '<Alg>:<level>' into the integer code to pass to ROOT.
- Author
- Chris Jones
- Date
- 2013-10-24
Definition at line 19 of file RootCompressionSettings.h.
| RootHistCnv::RootCompressionSettings::RootCompressionSettings |
( |
const std::string & |
settings | ) |
|
Standard constructor.
Definition at line 24 of file RootCompressionSettings.cpp.
m_level ( ROOT::CompressionSettings(ROOT::kZLIB,1) )
{
if ( idx != std::string::npos )
{
ROOT::ECompressionAlgorithm alg_code = ROOT::kUseGlobalSetting;
if ( alg == "ZLIB" ) { alg_code = ROOT::kZLIB; }
else if ( alg == "LZMA" ) { alg_code = ROOT::kLZMA; }
else
{
throw std::runtime_error("ERROR: Unknown ROOT compression algorithm:"+alg);
}
const int ilev = boost::lexical_cast<int>(slev);
m_level = ROOT::CompressionSettings(alg_code,ilev);
}
}
| RootHistCnv::RootCompressionSettings::~RootCompressionSettings |
( |
| ) |
|
|
inline |
| int RootHistCnv::RootCompressionSettings::level |
( |
| ) |
const |
|
inline |
| std::string RootHistCnv::RootCompressionSettings::m_compSettings |
|
private |
| int RootHistCnv::RootCompressionSettings::m_level |
|
private |
The documentation for this class was generated from the following files: