g4tools  5.4.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::rroot::dummy_fac Class Reference
Inheritance diagram for tools::rroot::dummy_fac:
Inheritance graph
[legend]
Collaboration diagram for tools::rroot::dummy_fac:
Collaboration graph
[legend]

Public Member Functions

virtual std::ostream & out () const
 
virtual irocreate (const std::string &a_class, const args &)
 
 dummy_fac (std::ostream &a_out)
 
virtual ~dummy_fac ()
 
- Public Member Functions inherited from tools::rroot::ifac
virtual ~ifac ()
 

Protected Member Functions

 dummy_fac (const dummy_fac &a_from)
 
dummy_facoperator= (const dummy_fac &)
 

Protected Attributes

std::ostream & m_out
 

Additional Inherited Members

- Public Types inherited from tools::rroot::ifac
typedef std::map< char, void * > args
 
- Static Public Member Functions inherited from tools::rroot::ifac
static void * find_args (const args &a_args, char a_key)
 
static char arg_class ()
 
static std::string * arg_class (const args &a_args)
 

Detailed Description

Definition at line 15 of file dummy_fac.

Constructor & Destructor Documentation

◆ dummy_fac() [1/2]

tools::rroot::dummy_fac::dummy_fac ( std::ostream &  a_out)
inline

Definition at line 62 of file dummy_fac.

62 :m_out(a_out){}

◆ ~dummy_fac()

virtual tools::rroot::dummy_fac::~dummy_fac ( )
inlinevirtual

Definition at line 63 of file dummy_fac.

63 {}

◆ dummy_fac() [2/2]

tools::rroot::dummy_fac::dummy_fac ( const dummy_fac a_from)
inlineprotected

Definition at line 65 of file dummy_fac.

65 : ifac(a_from),m_out(a_from.m_out){}

Member Function Documentation

◆ create()

virtual iro* tools::rroot::dummy_fac::create ( const std::string &  a_class,
const args  
)
inlinevirtual

Implements tools::rroot::ifac.

Definition at line 18 of file dummy_fac.

18  {
19  if(rcmp(a_class,"TGraph")) { //for TH_read_1D/List.
20  return new graph();
21 /*
22  } else if(rcmp(a_class,"TObjArray")) {
23  std::string* sc = ifac::arg_class(a_args);
24  if(sc) {
25  if((*sc)==streamer_element::s_class()){
26  return new obj_array<streamer_element>(*this);
27  } else {
28  m_out << "tools::rroot::dummy_fac::create :"
29  << " Can't create TObjArray of " << *sc << "."
30  << std::endl;
31  return 0;
32  }
33  } else {
34  return new iros(*this);
35  }
36  */
37 /*
38  // for read_sinfos() :
39  } else if(rcmp(a_class,"TStreamerInfo")) {
40  return new streamer_info(*this);
41  } else if(rcmp(a_class,"TStreamerBase")
42  ||rcmp(a_class,"TStreamerBasicType")
43  ||rcmp(a_class,"TStreamerBasicPointer")
44  ||rcmp(a_class,"TStreamerObjectAny")
45  ||rcmp(a_class,"TStreamerObject")
46  ||rcmp(a_class,"TStreamerObjectPointer")
47  ||rcmp(a_class,"TStreamerString")
48  ||rcmp(a_class,"TStreamerSTL")
49  ||rcmp(a_class,"TStreamerLoop")
50  ||rcmp(a_class,"TList")
51  ) {
52  return new dummy_streamer_element();
53 */
54  } else {
55  m_out << "tools::rroot::dummy_fac::create :"
56  << " dummy. Can't create object of class " << sout(a_class) << "."
57  << std::endl;
58  }
59  return 0;
60  }

◆ operator=()

dummy_fac& tools::rroot::dummy_fac::operator= ( const dummy_fac )
inlineprotected

Definition at line 66 of file dummy_fac.

66 {return *this;}

◆ out()

virtual std::ostream& tools::rroot::dummy_fac::out ( ) const
inlinevirtual

Implements tools::rroot::ifac.

Definition at line 17 of file dummy_fac.

17 {return m_out;}

Member Data Documentation

◆ m_out

std::ostream& tools::rroot::dummy_fac::m_out
protected

Definition at line 68 of file dummy_fac.


The documentation for this class was generated from the following file:
tools::rcmp
bool rcmp(const char *a_1, const char *a_2)
Definition: rcmp:14
tools::rroot::dummy_fac::m_out
std::ostream & m_out
Definition: dummy_fac:68