1 package Bio
::Tools
::EUtilities
::Query
::GlobalQuery
;
5 use base
qw(Bio::Root::Root Bio::Tools::EUtilities::EUtilDataI);
8 my ($class, @args) = @_;
9 my $self = $class->SUPER::new
(@args);
10 $self->eutil('egquery');
11 $self->datatype('globalquery');
18 Usage : $st = $qd->get_term;
19 Function: retrieve the term for the global search
27 return $self->{'_term'};
33 Usage : $ct = $qd->get_database;
34 Function: retrieve the database
42 return $self->{'_dbname'};
48 Usage : $ct = $qd->get_count;
49 Function: retrieve the count for the database
57 return $self->{'_count'};
63 Usage : $st = $qd->get_status;
64 Function: retrieve the query status for database in db()
72 return $self->{'_status'};
78 Usage : $ct = $qd->get_menu_name;
79 Function: retrieve the full name for the database in db()
87 return $self->{'_menuname'};
93 my ($self, $data) = @_;
94 map {$self->{'_'.lc $_} = $data->{$_}} keys %$data;
100 Usage : $foo->to_string()
101 Function : converts current object to string
103 Args : (optional) simple data for text formatting
104 Note : Used generally for debugging and for the print_GlobalQuery method
110 my $string .= sprintf("%-20s Total:%-10d Status:%s\n",