ATLAS Offline Software
Loading...
Searching...
No Matches
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 Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Protected Attributes

 _factory = argFactory(genclass, *args, **kwargs)

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.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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__()

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__()

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()

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 = argFactory(genclass, *args, **kwargs)
protected

Definition at line 86 of file trfArgClasses.py.


The documentation for this class was generated from the following file: