Definition at line 15 of file store.
◆ store() [1/2]
tools::hdf5::store::store |
( |
std::ostream & |
a_out, |
|
|
hid_t |
a_group, |
|
|
const std::string & |
a_name, |
|
|
bool |
a_write, |
|
|
unsigned int |
a_compress |
|
) |
| |
|
inline |
Definition at line 19 of file store.
26 tools::mem::increment(s_class().c_str());
30 a_out <<
"tools::hdf5::store::store : string a_name is empty." << std::endl;
36 a_out <<
"tools::hdf5::store::store : can't create " << a_name <<
" group." << std::endl;
41 m_out <<
"tools::hdf5::store::store : write_atb(type) failed." << std::endl;
47 m_out <<
"tools::hdf5::store::store : write_atb(class) failed." << std::endl;
53 if(!write_scalar_atb<int>(
m_group,
"version",v)) {
54 m_out <<
"tools::hdf5::store::store : write_scalar_atb(version) failed." << std::endl;
62 a_out <<
"tools::hdf5::store::store : can't open " << a_name <<
" group." << std::endl;
66 std::vector<std::string> names;
68 m_out <<
"tools::hdf5::store::store : read_array_string(names) failed." << std::endl;
73 std::vector<std::string> TFORMs;
75 m_out <<
"tools::hdf5::store::store : read_array_string(tforms) failed." << std::endl;
80 if(names.size()!=TFORMs.size()) {
81 m_out <<
"tools::hdf5::store::store : names/TFORMs size mismatch." << std::endl;
82 m_out <<
"names :" << std::endl;
84 m_out <<
"TFORMs :" << std::endl;
90 for(
size_t index=0;index<names.size();index++) {
92 m_out <<
"tools::hdf5::store::store : can't create hdf5_column "
◆ ~store()
virtual tools::hdf5::store::~store |
( |
| ) |
|
|
inlinevirtual |
Definition at line 102 of file store.
106 m_out <<
"tools::hdf5::store::~store : not same entries on all columns. Write 0." << std::endl;
110 if(!write_scalar<tools::uint64>(
m_group,s_entries(),_entries)) {
111 m_out <<
"tools::hdf5::store::~store : write_scalar(entries) failed." << std::endl;
114 m_out <<
"tools::hdf5::store::~store : write_scalar(columns) failed." << std::endl;
116 {std::vector<std::string> names;
121 m_out <<
"tools::hdf5::store::~store : write_array_string(names) failed." << std::endl;
123 {std::vector<std::string> TFORMs;
128 m_out <<
"tools::hdf5::store::~store : write_array_string(tforms) failed." << std::endl;
138 tools::mem::decrement(s_class().c_str());
◆ store() [2/2]
tools::hdf5::store::store |
( |
const store & |
a_from | ) |
|
|
inlineprotected |
Definition at line 142 of file store.
149 tools::mem::increment(s_class().c_str());
◆ compress_level()
unsigned int tools::hdf5::store::compress_level |
( |
| ) |
const |
|
inline |
◆ create_pages()
pages* tools::hdf5::store::create_pages |
( |
const std::string & |
a_name, |
|
|
const std::string & |
a_form |
|
) |
| |
|
inline |
Definition at line 171 of file store.
174 if(!_pages->is_valid()) {
175 m_out <<
"tools::hdf5::store::create_column : can't create pages." << std::endl;
◆ entries()
bool tools::hdf5::store::entries |
( |
tools::uint64 & |
a_entries | ) |
const |
|
inline |
Definition at line 157 of file store.
158 if(
m_pagess.empty()) {a_entries = 0;
return true;}
159 a_entries =
m_pagess.front()->entries();
161 if((*it)->entries()!=a_entries) {
162 m_out <<
"tools::hdf5::store::entries : not same entries on all columns."
163 <<
" Front " << a_entries <<
", it " << (*it)->entries() <<
"." << std::endl;
◆ group()
hid_t tools::hdf5::store::group |
( |
| ) |
const |
|
inline |
◆ operator=()
store& tools::hdf5::store::operator= |
( |
const store & |
| ) |
|
|
inlineprotected |
◆ out()
std::ostream& tools::hdf5::store::out |
( |
| ) |
const |
|
inline |
◆ m_compress
unsigned int tools::hdf5::store::m_compress |
|
protected |
◆ m_group
hid_t tools::hdf5::store::m_group |
|
protected |
◆ m_name
std::string tools::hdf5::store::m_name |
|
protected |
◆ m_out
std::ostream& tools::hdf5::store::m_out |
|
protected |
◆ m_pagess
std::vector<pages*> tools::hdf5::store::m_pagess |
|
protected |
◆ m_write
bool tools::hdf5::store::m_write |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/hdf5/store