g4tools  5.4.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
tools::rroot::ifac Class Referenceabstract
Inheritance diagram for tools::rroot::ifac:
Inheritance graph
[legend]

Public Types

typedef std::map< char, void * > args
 

Public Member Functions

virtual ~ifac ()
 
virtual std::ostream & out () const =0
 
virtual irocreate (const std::string &a_class, const args &)=0
 

Static Public Member Functions

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 19 of file ifac.

Member Typedef Documentation

◆ args

typedef std::map<char,void*> tools::rroot::ifac::args

Definition at line 21 of file ifac.

Constructor & Destructor Documentation

◆ ~ifac()

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

Definition at line 23 of file ifac.

23 {}

Member Function Documentation

◆ arg_class() [1/2]

static char tools::rroot::ifac::arg_class ( )
inlinestatic

Definition at line 34 of file ifac.

34 {return 'C';}

◆ arg_class() [2/2]

static std::string* tools::rroot::ifac::arg_class ( const args a_args)
inlinestatic

Definition at line 36 of file ifac.

36  {
37  void* p = ifac::find_args(a_args,ifac::arg_class());
38  if(!p) return 0;
39  return (std::string*)p;
40  }

◆ create()

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

◆ find_args()

static void* tools::rroot::ifac::find_args ( const args a_args,
char  a_key 
)
inlinestatic

Definition at line 28 of file ifac.

28  {
29  std::map<char,void*>::const_iterator it = a_args.find(a_key);
30  if(it==a_args.end()) return 0;
31  return (*it).second;
32  }

◆ out()

virtual std::ostream& tools::rroot::ifac::out ( ) const
pure virtual

The documentation for this class was generated from the following file:
tools::rroot::ifac::arg_class
static char arg_class()
Definition: ifac:34
tools::rroot::ifac::find_args
static void * find_args(const args &a_args, char a_key)
Definition: ifac:28