1 /******************************************************************************
2 * Copyright (c) 2000-2014 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 ******************************************************************************/
8 module PIPEasp_Templates {
10 import from PIPEasp_Types all;
12 template ASP_PKill t_PKill(template integer signo) := {
16 template ASP_PError t_PError(template charstring msg) := {
20 template ASP_PLineMode t_PLineMode(template boolean p_lineMode) := {
21 lineMode := p_lineMode
24 template ASP_PResult t_PResult(
25 template charstring p_stdout,
26 template charstring p_stderr,
27 template integer p_code) := {
33 template ASP_PResultBinary t_PResultBinary(
34 template octetstring p_stdout,
35 template octetstring p_stderr,
36 template integer p_code) := {
42 template ASP_PStdin t_PStdin(
43 template charstring p_stdin) := {
47 template ASP_PStdinBinary t_PStdinBinary(
48 template octetstring p_stdinBinary) := {
49 stdin := p_stdinBinary
52 template ASP_PStdout t_PStdout(
53 template charstring p_stdout) := {
57 template ASP_PStderr t_PStderr(
58 template charstring p_stderr) := {
62 template ASP_PStdoutBinary t_PStdoutBinary(
63 template octetstring p_stdout) := {
67 template ASP_PStderrBinary t_PStderrBinary(
68 template octetstring p_stderr) := {
72 template ASP_PExecuteBackground t_PExecuteBackground(
73 template charstring p_command) := {
77 template ASP_PExit t_PExit(template integer p_code) := {
81 template ASP_PExecute t_PExecute(
82 template charstring p_command, template charstring p_stdin) := {
87 template ASP_PExecuteBinary t_PExecuteBinary(
88 template charstring p_command, template octetstring p_stdin) := {