SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2005-2006 Andre Merzky (andre@merzky.net) 00002 // 00003 // Use, modification and distribution is subject to the Boost Software 00004 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 00005 // http://www.boost.org/LICENSE_1_0.txt) 00006 00007 00008 #ifndef SAGA_UTILS_UTILS_HPP 00009 #define SAGA_UTILS_UTILS_HPP 00010 00011 #include <saga/saga/url.hpp> 00012 #include <saga/saga/util.hpp> 00013 00014 #include <saga/saga/adaptors/utils/singleton.hpp> 00015 #include <saga/saga/adaptors/utils/is_local_address.hpp> 00016 #include <saga/saga/adaptors/utils/ini/ini.hpp> 00017 #include <saga/saga/adaptors/utils/process/process.hpp> 00018 00019 namespace saga 00020 { 00021 namespace adaptors 00022 { 00023 namespace utils 00024 { 00025 SAGA_EXPORT std::vector <std::string> split (std::string line, 00026 char delim = '\t', 00027 int number = -1 ); 00028 SAGA_EXPORT std::vector <std::string> split_commandline 00029 (std::string const & line); 00030 SAGA_EXPORT std::vector <std::string> head (std::size_t n, 00031 std::vector <std::string> const & in); 00032 SAGA_EXPORT std::vector <std::string> tail (std::size_t n, 00033 std::vector <std::string> const & in); 00034 SAGA_EXPORT std::vector <std::string> rev (std::vector <std::string> const & in); 00035 SAGA_EXPORT std::vector <std::string> tac (std::vector <std::string> const & in); 00036 SAGA_EXPORT std::vector <std::string> grep (std::string pattern, 00037 std::vector <std::string> const & in); 00038 00039 } // namespace utils 00040 } // namespace adaptors 00041 } // namespace saga 00042 00043 #endif // SAGA_UTILS_UTILS_HPP 00044