CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
uploads.output Class Reference

Public Member Functions

def __init__
 
def write
 

Public Attributes

 current_output_length
 

Private Attributes

 _log_handle
 
 _verbose
 

Detailed Description

Used to control output to the console and to the client-side log.

Definition at line 59 of file uploads.py.

Constructor & Destructor Documentation

def uploads.output.__init__ (   self,
  log_handle = None,
  verbose = False 
)

Definition at line 64 of file uploads.py.

64 
65  def __init__(self, log_handle=None, verbose=False):
66  # first time writing progress bar, don't need to go back along the line
68  self._verbose = verbose
69  self._log_handle = log_handle
current_output_length
Definition: uploads.py:66
def __init__
Definition: uploads.py:64

Member Function Documentation

def uploads.output.write (   self,
  message = "",
  ignore_verbose = False 
)
Write to the console and to the log file held by self.

Definition at line 70 of file uploads.py.

References uploads.output._log_handle, uploads.output._verbose, uploads.log(), and print().

Referenced by pkg.AbstractPkg.generate().

70 
71  def write(self, message="", ignore_verbose=False):
72  """
73  Write to the console and to the log file held by self.
74  """
75  if ignore_verbose:
76  print(message)
77  elif self._verbose:
78  print(message)
79  if self._log_handle != None:
80  log(self._log_handle, message)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def log
Definition: uploads.py:39

Member Data Documentation

uploads.output._log_handle
private

Definition at line 68 of file uploads.py.

Referenced by uploads.output.write().

uploads.output._verbose
private

Definition at line 67 of file uploads.py.

Referenced by helpers.CloneSequenceVisitor.clonedSequence(), helpers.CloneTaskVisitor.clonedTask(), MassReplace.MassSearchReplaceAnyInputTagVisitor.doIt(), MassReplace.MassSearchReplaceParamVisitor.doIt(), ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor.doIt(), and uploads.output.write().

uploads.output.current_output_length

Definition at line 66 of file uploads.py.