00001 /*****************************************************************************
00002 * Author: Valient Gough <vgough@pobox.com>
00003 *
00004 *****************************************************************************
00005 * Copyright (c) 2001, Valient Gough
00006 *
00007 * This library is free software; you can distribute it and/or modify it under
00008 * the terms of the GNU Lesser General Public License (LGPL), as published by
00009 * the Free Software Foundation; either version 2.1 of the License, or (at your
00010 * option) any later version.
00011 *
00012 * This library is distributed in the hope that it will be useful, but WITHOUT
00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 * FITNESS FOR A PARTICULAR PURPOSE. See the LGPL in the file COPYING for more
00015 * details.
00016 *
00017 */
00018
00019 #ifndef _Spawn_incl_
00020 #define _Spawn_incl_
00021
00022 #include <rel/VMap.h>
00023
00024 #include <string>
00025
00026 namespace rel
00027 {
00028 class TypeStream;
00029
00030 // Spawn is a module to spawn external clients, and return a communication
00031 // channel to talk to them.
00032 namespace Spawn
00033 {
00034
00035 // returns VMapPtr.
00036 // The stream should contain the executable name/path in the first
00037 // argument, followed by zero or more arguments to be passed to the
00038 // program (all string type - as they are passed on the command line).
00039 OpaqueValue spawnChild(const TypeStream *args);
00040
00041 };
00042
00043
00044 } // namespace rel
00045
00046 #endif
00047
1.2.10 written by Dimitri van Heesch,
© 1997-2001