Type definition of old meta data.
More...
#include <JMeta.hh>
Type definition of old meta data.
Definition at line 439 of file JMeta.hh.
◆ operator JComment_t()
Type conversion operator.
- Returns
- comment
Definition at line 123 of file JMeta.hh.
124 {
126
127 for (const_iterator i = this->begin(); i != this->end(); ++i) {
128 comment.push_back(i->first + ' ' + i->second);
129 }
130
131 return comment;
132 }
std::vector< std::string > JComment_t
Type definition of comment block.
◆ copy()
void JSUPPORT::JMeta::copy |
( |
const char *const | file_name, |
|
|
TFile & | out ) |
|
staticinherited |
Copy meta data.
- Parameters
-
file_name | name of input file |
out | output file |
Definition at line 421 of file JMeta.hh.
422 {
424
426
427 while (in.hasNext()) {
428
429 const JMeta* p = in.next();
430
432 }
433 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool putObject(TDirectory &dir, const JMeta &meta)
Write meta data to ROOT directory.
◆ getEquationParameters()
Get equation parameters.
- Returns
- equation parameters
Definition at line 149 of file JMeta.hh.
150 {
151 static const JEquationParameters parameters("=", "\n", "", "");
152
153 return parameters;
154 }
◆ valueOf()
static JMeta JSUPPORT::JMeta::valueOf |
( |
const std::string & | buffer | ) |
|
|
inlinestaticinherited |
Extract meta data.
- Parameters
-
- Returns
- meta data
Definition at line 163 of file JMeta.hh.
164 {
167
169
170 istringstream is(buffer);
171
173
174 for (
JEquation equation; is >> equation; ) {
175 meta[equation.getKey()] = equation.getValue();
176 }
177
178 return meta;
179 }
Facet class to specify parsing of equations in currect locale (see class JLANG::JEquation).
General purpose equation class.
◆ toString()
std::string JSUPPORT::JMeta::toString |
( |
| ) |
const |
|
inlineinherited |
Convert meta data to string.
- Returns
- string
Definition at line 187 of file JMeta.hh.
188 {
191
192 ostringstream os;
193
195
196 for (JMeta::const_iterator i = this->begin(); i != this->end(); ++i) {
197 os << JEquation::make_equation(i->first, i->second);
198 }
199
200 return os.str();
201 }
The documentation for this struct was generated from the following file: