Package pyx12 :: Module params :: Class ParamsBase
[hide private]

Class ParamsBase

source code

object --+
         |
        ParamsBase
Known Subclasses:

Base class for parameters

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get(self, option)
Get the value of the parameter specified by option
source code
 
set(self, option, value)
Set the value of the parameter specified by option
source code
 
_read_config_file(self, filename)
Read program configuration from an XML file
source code
 
_set_option(self, option, value, valtype)
Set the value of the parameter specified by option
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

get(self, option)

source code 

Get the value of the parameter specified by option

Parameters:
  • option (string) - Option name

set(self, option, value)

source code 

Set the value of the parameter specified by option

Parameters:
  • option (string) - Option name
  • value (string) - Parameter value

_read_config_file(self, filename)

source code 

Read program configuration from an XML file

Parameters:
  • filename (string) - XML file
Returns:
None

_set_option(self, option, value, valtype)

source code 

Set the value of the parameter specified by option

Parameters:
  • option (string) - Option name
  • value (string) - Parameter value
  • valtype (string) - Parameter type