🌻 📖 Clang::CastXML::Wrapper::Result

NAME

Clang::CastXML::Wrapper::Result - The result of a Clang::CastXML::Wrapper run

VERSION

version 0.02

SYNOPSIS

 use Clang::CastXML::Wrapper;
 
 my $wrapper = Clang::CastXML::Wrapper->new;
 my $result = $wrapper->raw('--version');

DESCRIPTION

This class represents the result of running CastXML.

PROPERTIES

wrapper

 my $wrapper = $result->wrapper;

Returns the Clang::CastXML::Wrapper which ran CastXML.

args

 my @args = $result->args->@*;

Returns the arguments passed to CastXML.

out

 my $out = $result->out;

Returns the standard output.

err

 my $err = $result->err;

Returns the standard error.

ret

 my $ret = $result->ret;

Returns the command return value.

sig

 my $sig = $result->sig;

Returns the signal that killed the process, if any. If not killed by signal, this will be zero.

METHODS

is_success

 my $bool = $result->is_success;

Returns true if the run was successful. That is, if both ret and sig are zero.

SEE ALSO

Clang::CastXML, Clang::CastXML::Wrapper

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.