Warning, /include/Geant4/tools/rroot/dummy_fac is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_rroot_dummy_fac
0005 #define tools_rroot_dummy_fac
0006
0007 //#include "info"
0008 //#include "iros"
0009
0010 #include "graph"
0011
0012 namespace tools {
0013 namespace rroot {
0014
0015 class dummy_fac : public virtual ifac {
0016 public: //ifac
0017 virtual std::ostream& out() const {return m_out;}
0018 virtual iro* create(const std::string& a_class,const args& /*a_args*/) {
0019 if(rcmp(a_class,"TGraph")) { //for TH_read_1D/List.
0020 return new graph();
0021 } else {
0022 m_out << "tools::rroot::dummy_fac::create :"
0023 << " dummy. Can't create object of class " << sout(a_class) << "."
0024 << std::endl;
0025 }
0026 return 0;
0027 }
0028 public:
0029 dummy_fac(std::ostream& a_out):m_out(a_out){}
0030 virtual ~dummy_fac(){}
0031 protected:
0032 dummy_fac(const dummy_fac& a_from): ifac(a_from),m_out(a_from.m_out){}
0033 dummy_fac& operator=(const dummy_fac&){return *this;}
0034 protected:
0035 std::ostream& m_out;
0036 };
0037
0038 }}
0039
0040 #endif