summaryrefslogtreecommitdiffstats
path: root/watchlink/rl_str_proc.hh
blob: ad7d897f950b29f4fb6101d560b066222f1f903e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Module: rl_str_proc.hh
 *
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published
 * by the Free Software Foundation.
 */
#ifndef __RL_STR_PROC_HH__
#define __RL_STR_PROC_HH__

#include <vector>
#include <string>

class StrProc
{
public:
  StrProc(const std::string &in, const std::string &token);

  std::string get(int i);

  std::string get(int start, int end);

  std::vector<std::string> get();

  int size() {return _str_coll.size();}

private:
  std::vector<std::string> _str_coll;
};

#endif //__RL_STR_PROC_HH__