Package biana :: Package BianaParser :: Module bianaParser :: Class BianaParser
[hide private]
[frames] | no frames]

Class BianaParser

source code


General Parser Class to biana

Instance Methods [hide private]
 
__init__(self, default_db_description=None, default_script_name='bianaParser.py', default_script_description='This file implements a program that fills up tables in databa..., additional_compulsory_arguments=[], additional_optional_arguments=[])
Starts the bianaParser Object
source code
 
start(self) source code
 
close(self) source code
 
parseArguments(self)
Method that returns a dictionary with the values of the arguments
source code
 
add_to_log(self, key)
Increment the counter of a log dictionary for a given key
source code
 
get_log_string(self)
Returns a string with the content of the log dictionary
source code
 
print_help(self) source code
 
_indent(self, max_num_tabulators, initial_length) source code
 
_splitsize(self, string, size)
Split a string in substrings with a determined size
source code
 
initialize_input_file_descriptor(self)
Create the input file descriptor given input database file name.
source code
 
parse_database(self)
Method to be overwritten by specific parsers
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, default_db_description=None, default_script_name='bianaParser.py', default_script_description='This file implements a program that fills up tables in databa..., additional_compulsory_arguments=[], additional_optional_arguments=[])
(Constructor)

source code 

Starts the bianaParser Object

Overrides: object.__init__

add_to_log(self, key)

source code 

Increment the counter of a log dictionary for a given key

Used in parsers

get_log_string(self)

source code 

Returns a string with the content of the log dictionary

Format: key: value

initialize_input_file_descriptor(self)

source code 

Create the input file descriptor given input database file name. Handles gzipped data as well.

parse_database(self)

source code 

Method to be overwritten by specific parsers

The method must include the calls to control lock and unlock database procedures