source: soft/giet_vm/mover/include/path_handler.h @ 160

Last change on this file since 160 was 160, checked in by karaoui, 12 years ago

giet-vm new version

File size: 702 bytes
Line 
1#ifndef PATH_H_
2#define PATH_H_
3
4#include <iostream>
5#include <string>
6#include <sstream>
7#include <vector>
8#include <algorithm>
9#include <iterator>
10
11
12//class Mover;
13
14class PathHandler
15{
16    //friend class Mover;
17
18    std::string dirPath;
19    char delim;
20
21    std::vector<std::string>& split(const std::string &s, char delim, std::vector<std::string> &elems);
22
23    std::vector<std::string> split(const std::string &s, char delim);
24
25    std::string getFilePath(const std::string& filepath);
26
27public:
28
29    ~PathHandler();
30    PathHandler(const std::string& filepath);
31
32    std::string getFullName(const std::string& filepath) const;
33
34    std::string getFileName(const std::string& filepath);
35};
36
37
38#endif
Note: See TracBrowser for help on using the repository browser.