Siebel::Srvrmgr::ListParser::Output::Tabular - base class for all command outputs that have a tabular form
This is a base class, look for implementations of subclasses for examples.
This class is a base class for all classes that parses output that have a tabular form (almost all of them).
All those outputs have a header with the columns names and the columns with the data. The "columns" are defined by a single character to separate them or by fixed width.
It have common attributes and methods for parsing different commands output.
This class extends Siebel::Srvrmgr::ListParser::Output and applies the Moose Role Siebel::Srvrmgr::ListParser::Output::ToString.
Identifies which subtype of output a instance is. See Siebel::Srvrmgr::Types, OutputTabularType for details.
OutputTabularType
It is a read-only, required attribute during object creation.
The column/field separator in the tabular output, if any. Used to parse the data into columns.
It is a single character (see Siebel::Srvrmgr::Types, Chr) and is a read-only, required attribute during object creation.
Chr
An array reference with the fields names expected by a subclass.
It is used for validation and parsing of the output. If the output doesn't have the same sequence of fields names, an exception will be raised.
The two known types of tabular output, by default:
Siebel::Srvrmgr::ListParser::Output::Tabular::Struct::Fixed
Siebel::Srvrmgr::ListParser::Output::Tabular::Struct::Delimited
Unless you're going to subclass this class you won't need to know more than that.
A boolean indicating if the header was located in the command output.
Returns true or false depending on it. By default is false.
Getter for structure_type attribute.
structure_type
Getter for col_sep attribute.
col_sep
Getter for expected_fields attribute.
expected_fields
Getter for found_header attribute.
found_header
The method that parses the content of raw_data attribute.
raw_data
This method expects a header in the file, so all subclasses of this class.
All subclasses of Siebel::Srvrmgr::ListParser::Output::Tabular are expect to have both the header and trailer in the output of executed commands in srvrmgr program. Removing one or both of them will result in parsing errors and probably exceptions.
srvrmgr
Siebel::Srvrmgr::ListParser::Output
l<Siebel::Srvrmgr::ListParser::Output::ToString>
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
This file is part of Siebel Monitoring Tools.
Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see http://www.gnu.org/licenses/.
To install Siebel::Srvrmgr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Siebel::Srvrmgr
CPAN shell
perl -MCPAN -e shell install Siebel::Srvrmgr
For more information on module installation, please visit the detailed CPAN module installation guide.