ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
CDir Class Reference

#include <FileUtils.h>

+ Inheritance diagram for CDir:
+ Collaboration diagram for CDir:

Public Member Functions

 CDir (const CString &sDir)
 
 CDir ()
 
 ~CDir ()
 
void CleanUp ()
 
size_t Fill (const CString &sDir)
 
size_t FillByWildcard (const CString &sDir, const CString &sWildcard)
 
unsigned int Chmod (mode_t mode)
 
unsigned int Delete ()
 
CFile::EFileAttr GetSortAttr () const
 
bool IsDescending () const
 

Static Public Member Functions

static unsigned int Chmod (mode_t mode, const CString &sWildcard, const CString &sDir=".")
 
static unsigned int Delete (const CString &sWildcard, const CString &sDir=".")
 
static CString CheckPathPrefix (const CString &sPath, const CString &sAdd, const CString &sHomeDir="")
 
static CString ChangeDir (const CString &sPath, const CString &sAdd, const CString &sHomeDir="")
 
static bool MakeDir (const CString &sPath, mode_t iMode=0700)
 
static CString GetCWD ()
 

Public Attributes

elements
 STL member. More...
 

Protected Attributes

CFile::EFileAttr m_eSortAttr
 
bool m_bDesc
 

Constructor & Destructor Documentation

CDir::CDir ( const CString sDir)
inline

References Fill().

CDir::CDir ( )
inline
CDir::~CDir ( )
inline

References CleanUp().

Member Function Documentation

static CString CDir::ChangeDir ( const CString sPath,
const CString sAdd,
const CString sHomeDir = "" 
)
static
static CString CDir::CheckPathPrefix ( const CString sPath,
const CString sAdd,
const CString sHomeDir = "" 
)
static
static unsigned int CDir::Chmod ( mode_t  mode,
const CString sWildcard,
const CString sDir = "." 
)
inlinestatic

References Chmod(), and FillByWildcard().

Referenced by Chmod().

unsigned int CDir::Chmod ( mode_t  mode)
inline
void CDir::CleanUp ( )
inline

Referenced by FillByWildcard(), and ~CDir().

static unsigned int CDir::Delete ( const CString sWildcard,
const CString sDir = "." 
)
inlinestatic

References Delete(), and FillByWildcard().

Referenced by Delete().

unsigned int CDir::Delete ( )
inline
size_t CDir::Fill ( const CString sDir)
inline

References FillByWildcard().

Referenced by CDir().

size_t CDir::FillByWildcard ( const CString sDir,
const CString sWildcard 
)
inline
static CString CDir::GetCWD ( )
inlinestatic
CFile::EFileAttr CDir::GetSortAttr ( ) const
inline

References m_eSortAttr.

bool CDir::IsDescending ( ) const
inline

References m_bDesc.

static bool CDir::MakeDir ( const CString sPath,
mode_t  iMode = 0700 
)
static

Member Data Documentation

T std::vector< T >::elements
inherited

STL member.

bool CDir::m_bDesc
protected

Referenced by IsDescending().

CFile::EFileAttr CDir::m_eSortAttr
protected

Referenced by GetSortAttr().


The documentation for this class was generated from the following file: