diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2007-12-14 13:40:31 -0800 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2007-12-14 13:40:31 -0800 |
commit | 59b21be36b2f4cd74aa0cea53492e3023b59770b (patch) | |
tree | c1f1893bcba148eff202148f548328155bf729d4 /src/rl_str_proc.hh | |
download | vyatta-wanloadbalance-59b21be36b2f4cd74aa0cea53492e3023b59770b.tar.gz vyatta-wanloadbalance-59b21be36b2f4cd74aa0cea53492e3023b59770b.zip |
initial check wan lbdebian/0.1
Signed-off-by: Michael Larson <slioch@eng-140.vyatta.com>
Diffstat (limited to 'src/rl_str_proc.hh')
-rw-r--r-- | src/rl_str_proc.hh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/rl_str_proc.hh b/src/rl_str_proc.hh new file mode 100644 index 0000000..c59df0a --- /dev/null +++ b/src/rl_str_proc.hh @@ -0,0 +1,24 @@ +#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__ |