NCBI C++ ToolKit
Public Types | Public Member Functions | Private Attributes
CFileDeleteList Class Reference

Search Toolkit Book for CFileDeleteList

CFileDeleteList --. More...

#include <corelib/ncbifile.hpp>

+ Inheritance diagram for CFileDeleteList:
+ Collaboration diagram for CFileDeleteList:

List of all members.

Public Types

typedef list< stringTNames

Public Member Functions

 ~CFileDeleteList ()
 Destructor removes all dir entries on list.
void Add (const string &entryname)
 Add a dir entry for later deletion.
const TNamesGetNames () const
 Get the underlying list.
void SetNames (TNames &names)
 Set the underlying list.

Private Attributes

TNames m_Names
 List of dir entries for deletion.

Detailed Description

CFileDeleteList --.

Define a list of dir entries for deletion.

Each Object of this class maintains a list of names of dir entries that will be deleted from the file system when the object goes out of scope.

Note: Directories will be removed recursively, symbolic links -- without dir entries which they points to.

Definition at line 2111 of file ncbifile.hpp.


Member Typedef Documentation

Definition at line 2117 of file ncbifile.hpp.


Constructor & Destructor Documentation

Destructor removes all dir entries on list.

Definition at line 4765 of file ncbifile.cpp.

References CDirEntry::eRecursiveIgnoreMissing, CDirEntry::IsDir(), ITERATE, m_Names, CDirEntry::Remove(), and CDir::Remove().


Member Function Documentation

void CFileDeleteList::Add ( const string entryname) [inline]

Add a dir entry for later deletion.

Definition at line 3895 of file ncbifile.hpp.

References m_Names.

Referenced by CFileDeleteAtExit::Add(), and CElementaryMatching::x_CleanVolumes().

Get the underlying list.

Definition at line 3901 of file ncbifile.hpp.

References m_Names.

Set the underlying list.

Definition at line 3907 of file ncbifile.hpp.

References m_Names.


Member Data Documentation

List of dir entries for deletion.

Definition at line 2127 of file ncbifile.hpp.

Referenced by Add(), GetNames(), SetNames(), and ~CFileDeleteList().


The documentation for this class was generated from the following files:
Modified on Sun Feb 01 11:56:11 2015 by modify_doxy.py rev. 426318