source: rrlib_util/stl_container/join.h @ 1:1ee34e7fbdec

Last change on this file since 1:1ee34e7fbdec was 1:1ee34e7fbdec, checked in by Tobias Föhst <foehst@…>, 9 years ago

Moved fileno and join to new lib

File size: 3.0 KB
Line 
1//
2// You received this file as part of RRLib
3// Robotics Research Library
4//
5// Copyright (C) AG Robotersysteme TU Kaiserslautern
6//
7// This program is free software; you can redistribute it and/or
8// modify it under the terms of the GNU General Public License
9// as published by the Free Software Foundation; either version 2
10// of the License, or (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20//
21//----------------------------------------------------------------------
22/*!\file    join.h
23 *
24 * \author  Tobias Foehst
25 *
26 * \date    2010-07-31
27 *
28 * \brief
29 *
30 * \b join
31 *
32 */
33//----------------------------------------------------------------------
34#ifndef _rrlib_util_stl_container_join_h_
35#define _rrlib_util_stl_container_join_h_
36
37//----------------------------------------------------------------------
38// External includes (system with <>, local with "")
39//----------------------------------------------------------------------
40#include <ostream>
41#include <string>
42
43//----------------------------------------------------------------------
44// Internal includes with ""
45//----------------------------------------------------------------------
46
47//----------------------------------------------------------------------
48// Debugging
49//----------------------------------------------------------------------
50
51//----------------------------------------------------------------------
52// Namespace declaration
53//----------------------------------------------------------------------
54namespace rrlib
55{
56namespace util
57{
58
59//----------------------------------------------------------------------
60// Forward declarations / typedefs / enums
61//----------------------------------------------------------------------
62
63//----------------------------------------------------------------------
64// Function declaration
65//----------------------------------------------------------------------
66
67template <typename TIterator>
68inline void Join(TIterator first, TIterator last, std::ostream &destination, const char *delimiter = ", ");
69
70template <typename TContainer>
71inline void Join(TContainer container, std::ostream &destination, const char *delimiter = ", ");
72
73template <typename TIterator>
74inline const std::string Join(TIterator first, TIterator last, const char *delimiter = ", ");
75
76template <typename TContainer>
77inline const std::string Join(const TContainer &container, const char *delimiter = ", ");
78
79//----------------------------------------------------------------------
80// End of namespace declaration
81//----------------------------------------------------------------------
82}
83}
84
85#include "util/stl_container/join.hpp"
86
87#endif
Note: See TracBrowser for help on using the repository browser.