ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.trfArgClasses.argActionFactory Class Reference

Factory class used to generate argparse actions, actions should be used when arguments are used without value, like boolean flags. More...

Inheritance diagram for python.trfArgClasses.argActionFactory:
Collaboration diagram for python.trfArgClasses.argActionFactory:

Public Member Functions

def __init__ (self, genclass, *args, **kwargs)
 
def factory (self)
 
def __call__ (self, option_strings, dest, **kwargs)
 
def __str__ (self)
 

Private Attributes

 _factory
 

Detailed Description

Factory class used to generate argparse actions, actions should be used when arguments are used without value, like boolean flags.

Definition at line 83 of file trfArgClasses.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trfArgClasses.argActionFactory.__init__ (   self,
  genclass,
args,
**  kwargs 
)

Definition at line 84 of file trfArgClasses.py.

84  def __init__(self, genclass, *args, **kwargs):
85  msg.debug('Initialised action class %s with args=%s; kwargs=%s', genclass, args, kwargs)
86  self._factory = argFactory(genclass, *args, **kwargs)
87 

Member Function Documentation

◆ __call__()

def python.trfArgClasses.argActionFactory.__call__ (   self,
  option_strings,
  dest,
**  kwargs 
)

Definition at line 92 of file trfArgClasses.py.

92  def __call__(self, option_strings, dest, **kwargs):
93  return argAction(self._factory, option_strings, dest, **kwargs)
94 

◆ __str__()

def python.trfArgClasses.argActionFactory.__str__ (   self)

Definition at line 95 of file trfArgClasses.py.

95  def __str__(self):
96  return 'argActionFactory for {0}'.format(self._factory)
97 
98 

◆ factory()

def python.trfArgClasses.argActionFactory.factory (   self)

Definition at line 89 of file trfArgClasses.py.

89  def factory(self):
90  return self._factory
91 

Member Data Documentation

◆ _factory

python.trfArgClasses.argActionFactory._factory
private

Definition at line 86 of file trfArgClasses.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18