LCCD
1.5.0
Main Page
Namespaces
Classes
Files
File List
source
test
conddbtests
folderpath.h
1
#ifndef folderpath_h
2
#define folderpath_h 1
3
4
#include <string>
5
13
inline
void
split_folder_col(
const
std::string& arg , std::string& folder , std::string& col ){
14
15
if
( arg[0] ==
'/'
){
16
17
folder = arg ;
18
19
unsigned
index = folder.rfind(
"/"
) ;
20
21
col = arg.substr( index + 1 , arg.size() ) ;
22
23
}
else
{
24
25
col = arg ;
26
folder =
"/lccd/"
+ col ;
27
}
28
29
}
30
31
32
#endif
33
34
35
Generated by
1.8.5