#include <TIDDirectory.h>
|
| std::string | chop (std::string &s1, const std::string &s2="/") |
Definition at line 25 of file TIDDirectory.h.
◆ TIDDirectory()
| TIDDirectory::TIDDirectory |
( |
const std::string & | n = "" | ) |
|
|
inline |
only create directory if it doesn't already exist
only create directory if it doesn't already exist
only create directory if it doesn't already exist
recursively create any level of actual directories
Definition at line 31 of file TIDDirectory.h.
31 :
33
34 if ( n=="" ) {
36 return;
37 }
38
39
40
41 if (
n.find(
"/")==std::string::npos ) {
45 return;
46 }
47
49
50 if ( _dir.find("/")!=std::string::npos ) {
51
52 std::string
dir =
chop( _dir,
"/" );
53
54 if ( _dir == "" ) {
58 return;
59 }
60
65
70 }
71
72
73 }
TIDDirectory(const std::string &n="")
std::string chop(std::string &s1, const std::string &s2="/")
◆ ~TIDDirectory()
| virtual TIDDirectory::~TIDDirectory |
( |
| ) |
|
|
inlinevirtual |
◆ chop()
| std::string TIDDirectory::chop |
( |
std::string & | s1, |
|
|
const std::string & | s2 = "/" ) |
|
inlineprotected |
Definition at line 93 of file TIDDirectory.h.
93 {
95 std::string::size_type
pos =
s1.find(s2);
96 if ( pos != std::string::npos ) {
97 s3 =
s1.substr(0, pos+
s2.size());
98 s1.erase(0, pos+
s2.size());
99 }
101 }
◆ cwd()
| TDirectory * TIDDirectory::cwd |
( |
| ) |
|
|
inline |
◆ disable()
| void TIDDirectory::disable |
( |
| ) |
|
|
inline |
◆ name()
| const std::string & TIDDirectory::name |
( |
| ) |
const |
|
inline |
◆ pop()
| void TIDDirectory::pop |
( |
| ) |
|
|
inline |
◆ push()
| void TIDDirectory::push |
( |
| ) |
|
|
inline |
◆ pwd()
| void TIDDirectory::pwd |
( |
| ) |
const |
|
inline |
◆ restore()
| void TIDDirectory::restore |
( |
| ) |
|
|
inline |
◆ Write()
| void TIDDirectory::Write |
( |
| ) |
|
|
inline |
◆ mDir
| TDirectory* TIDDirectory::mDir |
|
protected |
◆ mname
| std::string TIDDirectory::mname |
|
protected |
◆ mPop
| TDirectory* TIDDirectory::mPop |
|
protected |
The documentation for this class was generated from the following file: