ALib C++ Library
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
shellcommand.cpp
1//##################################################################################################
2// ALib C++ Library
3//
4// Copyright 2013-2025 A-Worx GmbH, Germany
5// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
6//##################################################################################################
7#include "alib_precompile.hpp"
8#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
10#endif
11#if ALIB_C20_MODULES
12 module;
13#endif
14//========================================= Global Fragment ========================================
16#if !DOXYGEN
17# if defined(__GLIBCXX__) || defined(_LIBCPP_VERSION) || defined(__ANDROID_NDK__)
18# elif defined(__APPLE__)
19# elif defined( _WIN32 )
20# else
21# pragma message ("Unknown Platform in file: " __FILE__ )
22# endif
23# include <fstream>
24#endif // !DOXYGEN
25//============================================== Module ============================================
26#if ALIB_C20_MODULES
27 module ALib.System;
28 import ALib.Lang;
29 import ALib.Strings;
30 import ALib.Strings.Tokenizer;
31#else
32# include "ALib.System.H"
33# if ALIB_MONOMEM
34# include "ALib.Strings.Monomem.H"
35# endif
36#endif
37//========================================== Implementation ========================================
38namespace alib { namespace system {
39
40
41#if !DOXYGEN
42// template instantiations
44 const NCString&,
45 strings::TAString<nchar, lang::HeapAllocator>&,
46 strings::util::TStringVector<nchar, lang::HeapAllocator>* );
47
48#if ALIB_MONOMEM
50 const NCString&,
51 strings::TAString<nchar, MonoAllocator>&,
52 strings::util::TStringVector<nchar, MonoAllocator>* );
53#endif
54#endif // !DOXYGEN
55
56}} // namespace [alib::system]
int Run(const NCString &cmd, lang::CurrentData keepData=lang::CurrentData::Clear)
strings::TCString< nchar > NCString
Type alias in namespace alib.
Definition cstring.inl:484