List of all members.
Detailed Description
Definition at line 112 of file ntuple.
Constructor & Destructor Documentation
inlib::waxml::ntuple::sub_ntuple::sub_ntuple |
( |
const std::string & |
a_name, |
|
|
const std::string & |
a_spaces |
|
) |
| [inline] |
virtual inlib::waxml::ntuple::sub_ntuple::~sub_ntuple |
( |
| ) |
[inline, virtual] |
inlib::waxml::ntuple::sub_ntuple::sub_ntuple |
( |
const sub_ntuple & |
a_from | ) |
[inline, protected] |
Definition at line 128 of file ntuple.
:iobj(a_from),m_name(a_from.m_name){}
Member Function Documentation
bool inlib::waxml::ntuple::sub_ntuple::add_row |
( |
| ) |
[inline] |
Definition at line 163 of file ntuple.
{
if(m_cols.empty()) return false;
std::ostringstream sout;
sout << m_spaces << "<row>" << std::endl;
std::vector<iobj*>::const_iterator it;
for(it=m_cols.begin();it!=m_cols.end();++it) {
if(sub_ntuple* sub = id_cast<iobj,sub_ntuple>(*(*it))) {
sout << m_spaces << " <entryITuple>" << std::endl;
sout << sub->value();
sout << m_spaces << " </entryITuple>" << std::endl;
sub->reset();
} else if(leaf* lf = id_cast<iobj,leaf>(*(*it))){
sout << m_spaces << " <entry"
<< " value=\"" << lf->s_value().c_str()
<< "\"/>" << std::endl;
}
}
sout << m_spaces << "</row>" << std::endl;
m_tmp += sout.str();
return true;
}
virtual std::string inlib::waxml::ntuple::sub_ntuple::aida_type |
( |
| ) |
const [inline, virtual] |
std::string inlib::waxml::ntuple::sub_ntuple::booking |
( |
| ) |
const [inline] |
virtual void* inlib::waxml::ntuple::sub_ntuple::cast |
( |
cid |
a_class | ) |
const [inline, virtual] |
const std::vector<iobj*>& inlib::waxml::ntuple::sub_ntuple::columns |
( |
| ) |
const [inline] |
template<class T >
column<T>* inlib::waxml::ntuple::sub_ntuple::create_column |
( |
const std::string & |
a_name, |
|
|
const T & |
a_def = T() |
|
) |
| [inline] |
Definition at line 133 of file ntuple.
{
if(find_named<iobj>(m_cols,a_name)) return 0;
column<T>* col = new column<T>(a_name,a_def);
if(!col) return 0;
m_cols.push_back(col);
return col;
}
sub_ntuple* inlib::waxml::ntuple::sub_ntuple::create_sub_ntuple |
( |
const std::string & |
a_name | ) |
[inline] |
Definition at line 142 of file ntuple.
{
if(find_named<iobj>(m_cols,a_name)) return 0;
std::string spaces;
for(unsigned int i=0;i<4;i++) spaces += " ";
sub_ntuple* col = new sub_ntuple(a_name,m_spaces+spaces);
if(!col) return 0;
m_cols.push_back(col);
return col;
}
static cid inlib::waxml::ntuple::sub_ntuple::id_class |
( |
| ) |
[inline, static] |
virtual const std::string& inlib::waxml::ntuple::sub_ntuple::name |
( |
| ) |
const [inline, virtual] |
void inlib::waxml::ntuple::sub_ntuple::reset |
( |
| ) |
[inline] |
const std::string& inlib::waxml::ntuple::sub_ntuple::value |
( |
| ) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/waxml/ntuple