Commit 75c6cb90 authored by Fred Drake's avatar Fred Drake

Add support for a filename to record the name of the node in which the

table will be presented.  Accessor methods are used to access the
attribute.
parent 1b194f92
package SynopsisTable;
sub new{
return bless {names=>'', info=>{}};
return bless {names=>'', info=>{}, file=>''};
}
sub declare{
......@@ -15,6 +15,20 @@ sub declare{
$self->{info}{$name} = "$key,$type,";
}
# The 'file' attribute is used to store the filename of the node in which
# the table will be presented; this assumes that each table will be presented
# only once, which works for the current use of this object.
sub set_file{
my($self, $filename) = @_;
$self->{file} = "$filename";
}
sub get_file{
my $self = shift;
return $self->{file};
}
sub set_synopsis{
my($self,$name,$synopsis) = @_;
my($key,$type,$unused) = split ',', $self->{info}{$name}, 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment