1 #ifndef __JROOT__JROOTCLASSSELECTOR__
2 #define __JROOT__JROOTCLASSSELECTOR__
21 namespace JPP {
using namespace JROOT; }
196 const TRegexp regexp(buffer.substr(1).c_str());
202 for (JROOTClassSelection::iterator i =
object.begin(); i !=
object.end(); ) {
204 if (TString(i->c_str()).Index(regexp) != -1)
214 object.insert(buffer.substr(1));
219 object.insert(buffer);
237 for (const_iterator i =
object.begin(); i !=
object.end(); ++i) {
238 out << *i << std::endl;
JROOTClassSelector(const JType< T > &type)
Contructor.
JROOTClassSelector()
Default contructor.
JROOTClassSelection(const JType< T > &typelist)
Contructor.
Auxiliary class to select ROOT class based on class name.
Auxiliary class for ROOT class selection.
JROOTClassSelector(const std::string &type_name)
Contructor.
Auxiliary class for a type holder.
std::set< JROOTClassSelector > getROOTClassSelection()
Get ROOT class selection.
friend std::istream & operator>>(std::istream &in, JROOTClassSelection &object)
Read ROOT class selection from input.
JROOTClassSelector(const char *type_name)
Contructor.
bool is_valid() const
Get status of given data type.
void operator()(const JType< T > &type)
Add data type.
JROOTClassSelection(const std::set< JROOTClassSelector > &selection)
Copy contructor.
void add()
Add given data type.
std::string getClassname(const std::string &type_name)
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR.
bool operator()(const JType< T > &type) const
Get status of given data type.
JObject_t & for_each(JObject_t &object, JType< JTypeList< JHead_t, JTail_t > > typelist)
For each data type method.
bool operator()(const JType< T > &type) const
Get status of given data type.
friend std::ostream & operator<<(std::ostream &out, const JROOTClassSelection &object)
Write ROOT class selection to output.
JROOTClassSelection()
Default contructor.
const char * getName()
Get ROOT name of given data type.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in