Go to the documentation of this file. 1 #ifndef __JROOT__JROOTCLASSSELECTOR__
2 #define __JROOT__JROOTCLASSSELECTOR__
21 namespace JPP {
using namespace JROOT; }
49 std::string(type_name)
59 std::string(type_name)
162 for (std::string buffer; in >> buffer; ) {
164 const TRegexp regexp(buffer.substr(1).c_str());
170 for (JROOTClassSelection::iterator i =
object.begin(); i !=
object.end(); ) {
172 if (TString(i->c_str()).Index(regexp) != -1)
182 object.insert(buffer.substr(1));
187 object.insert(buffer);
205 for (const_iterator i =
object.begin(); i !=
object.end(); ++i) {
206 out << *i << std::endl;
Auxiliary class for a type holder.
Auxiliary classes and methods for ROOT I/O.
JROOTClassSelector(const std::string &type_name)
Contructor.
JROOTClassSelector(const JType< T > &type)
Contructor.
JROOTClassSelector()
Default contructor.
JROOTClassSelection(const JType< T > &typelist)
Contructor.
JROOTClassSelector(const char *type_name)
Contructor.
std::set< JROOTClassSelector > getROOTClassSelection()
Get ROOT class selection.
friend std::istream & operator>>(std::istream &in, JROOTClassSelection &object)
Read ROOT class selection from input.
void operator()(const JType< T > &type)
Add data type.
bool operator()(const JType< T > &type) const
Get status of given data type.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class to select ROOT class based on class name.
JROOTClassSelection(const std::set< JROOTClassSelector > &selection)
Copy contructor.
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
Auxiliary class for ROOT class selection.
const char * getName()
Get ROOT name of given data type.
std::string getClassname(const std::string &type_name)
Get type name, i.e.
friend std::ostream & operator<<(std::ostream &out, const JROOTClassSelection &object)
Write ROOT class selection to output.
bool operator()(const JType< T > &type) const
Get status of given data type.
JROOTClassSelection()
Default contructor.