Helper.h 1.62 KB
Newer Older
Christopher Mueller's avatar
Christopher Mueller committed
1
2
3
4
5
6
7
8
9
/*
 * Helper.h
 *****************************************************************************
 * Copyright (C) 2010 - 2012 Klagenfurt University
 *
 * Created on: Feb 20, 2012
 * Authors: Christopher Mueller <christopher.mueller@itec.uni-klu.ac.at>
 *          Christian Timmerer  <christian.timmerer@itec.uni-klu.ac.at>
 *
10
11
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
Christopher Mueller's avatar
Christopher Mueller committed
12
13
14
15
16
 * by the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
Christopher Mueller's avatar
Christopher Mueller committed
19
20
 *
 * You should have received a copy of the GNU Lesser General Public License
21
22
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
Christopher Mueller's avatar
Christopher Mueller committed
23
24
25
26
27
28
 *****************************************************************************/

#ifndef HELPER_H_
#define HELPER_H_

#include <string>
29
#include <list>
Christopher Mueller's avatar
Christopher Mueller committed
30

31
namespace adaptative
Christopher Mueller's avatar
Christopher Mueller committed
32
33
34
35
36
37
{
    class Helper
    {
        public:
            static std::string combinePaths     (const std::string &path1, const std::string &path2);
            static std::string getDirectoryPath (const std::string &path);
38
            static bool        ifind            (std::string haystack, std::string needle);
39
            static std::list<std::string> tokenize(const std::string &, char);
Christopher Mueller's avatar
Christopher Mueller committed
40
41
42
43
    };
}

#endif /* HELPER_H_ */