NCBI C++ ToolKit
Public Types | Public Member Functions | Private Types | List of all members
CFile Class Reference

Search Toolkit Book for CFile

CFile –. More...

#include <corelib/ncbifile.hpp>

+ Inheritance diagram for CFile:
+ Collaboration diagram for CFile:

Public Types

enum  ECompareText { eIgnoreEol = eCompareText_IgnoreEol, eIgnoreWs = eCompareText_IgnoreWhiteSpace }
 Mode to compare streams in text form. More...
 
- Public Types inherited from CDirEntry
enum  EIfEmptyPath { eIfEmptyPath_Empty, eIfEmptyPath_Current }
 What GetDir() should return if the dir entry does not contains path. More...
 
enum  ERelativeToWhat { eRelativeToCwd, eRelativeToExe }
 How to interpret relative paths. More...
 
enum  ECopyFlags {
  fCF_Overwrite = (1 << 1), fCF_Update = (1 << 2) | fCF_Overwrite, fCF_Backup = (1 << 3) | fCF_Overwrite, fCF_Safe = (1 << 4) | fCF_Overwrite,
  fCF_TopDirOnly = (1 << 6), fCF_EqualTypes = (1 << 7), fCF_FollowLinks = (1 << 8), fCF_Verify = (1 << 9),
  fCF_PreserveOwner = (1 << 10), fCF_PreservePerm = (1 << 11), fCF_PreserveTime = (1 << 12), fCF_PreserveAll = fCF_PreserveOwner | fCF_PreservePerm | fCF_PreserveTime,
  fCF_Recursive = (1 << 14), fCF_SkipUnsupported = (1 << 15), fCF_Default = fCF_Recursive | fCF_FollowLinks
}
 Copy flags. More...
 
enum  ERenameFlags {
  fRF_Overwrite = (1 << 1), fRF_Update = (1 << 2) | fCF_Overwrite, fRF_Backup = (1 << 3) | fCF_Overwrite, fRF_EqualTypes = (1 << 4),
  fRF_FollowLinks = (1 << 5), fRF_Default = 0
}
 Rename flags. More...
 
enum  EBackupMode { eBackup_Copy = (1 << 1), eBackup_Rename = (1 << 2), eBackup_Default = eBackup_Copy }
 Backup modes. More...
 
enum  EProcessingFlags {
  fEntry = (1 << 0), fDir_Self = fEntry, fDir_Files = (1 << 1), fDir_Subdirs = (1 << 2),
  fDir_Recursive = (1 << 3), fDir_All = fDir_Self + fDir_Files + fDir_Subdirs, fIgnoreMissing = (1 << 4), eOnlyEmpty = fDir_Self,
  eEntryOnly = fDir_Self, eTopDirOnly = fDir_Self | fDir_Files, eNonRecursive = fDir_All, eRecursive = fDir_All | fDir_Recursive,
  eRecursiveIgnoreMissing = eRecursive | fIgnoreMissing
}
 Entries processing flags. More...
 
enum  EType {
  eFile = 0, eDir, ePipe, eLink,
  eSymLink = eLink, eSocket, eDoor, eBlockSpecial,
  eCharSpecial, eUnknown
}
 Directory entry type. More...
 
enum  EIfAbsent { eIfAbsent_Throw, eIfAbsent_Newer, eIfAbsent_NotNewer }
 What IsNewer() should do if the dir entry does not exist or is not accessible. More...
 
enum  EIfAbsent2 {
  fHasThisNoPath_Newer = (1 << 0), fHasThisNoPath_NotNewer = (1 << 1), fNoThisHasPath_Newer = (1 << 2), fNoThisHasPath_NotNewer = (1 << 3),
  fNoThisNoPath_Newer = (1 << 4), fNoThisNoPath_NotNewer = (1 << 5)
}
 What path version of IsNewer() should do if the dir entry or specified path does not exist or is not accessible. More...
 
enum  EMode {
  fExecute = 1, fWrite = 2, fRead = 4, fDefault = 8,
  fDefaultDirUser = fRead | fExecute | fWrite, fDefaultDirGroup = fRead | fExecute, fDefaultDirOther = fRead | fExecute, fDefaultUser = fRead | fWrite,
  fDefaultGroup = fRead, fDefaultOther = fRead
}
 Directory entry access permissions. More...
 
enum  ESpecialModeBits { fSticky = 1, fSetGID = 2, fSetUID = 4 }
 
enum  EModeRelative { fModeAdd = 16, fModeRemove = 32, fModeNoChange = 64 }
 Relative permissions change modes. More...
 
enum  EModeStringFormat { eModeFormat_Octal, eModeFormat_Symbolic, eModeFormat_List, eModeFormat_Default = eModeFormat_Octal }
 Permission mode string format. More...
 
enum  ETmpFileCreationMode { eTmpFileCreate, eTmpFileGetName }
 Temporary file creation mode. More...
 
enum  ETextBinary { eText, eBinary }
 What type of temporary file to create. More...
 
enum  EAllowRead { eAllowRead, eWriteOnly }
 Which operations to allow on temporary file. More...
 
typedef unsigned int TCopyFlags
 Binary OR of "ECopyFlags". More...
 
typedef unsigned int TRenameFlags
 Binary OR of "ERenameFlags". More...
 
typedef unsigned int TProcessingFlags
 Binary OR of "EProcessingFlags". More...
 
typedef TProcessingFlags TRemoveFlags
 Flags based on TProcessingFlags. More...
 
typedef TProcessingFlags TSetModeFlags
 
typedef TRemoveFlags EDirRemoveMode
 Directory remove mode. More...
 
typedef int TIfAbsent2
 Binary OR of "EIfAbsent2". More...
 
typedef unsigned int TMode
 Bitwise OR of "EMode". More...
 
typedef unsigned int TSpecialModeBits
 Bitwise OR of ESpecialModeBits. More...
 

Public Member Functions

 CFile (void)
 Default constructor. More...
 
 CFile (const string &file)
 Constructor using specified path string. More...
 
 CFile (const CDirEntry &file)
 Copy constructor. More...
 
virtual ~CFile (void)
 Destructor. More...
 
virtual EType GetObjectType (void) const
 Get a type of constructed object. More...
 
virtual bool Exists (void) const
 Check existence of file. More...
 
Int8 GetLength (void) const
 Get size of file. More...
 
virtual bool Copy (const string &new_path, TCopyFlags flags=fCF_Default, size_t buf_size=0) const
 Copy a file. More...
 
bool Compare (const string &file, size_t buf_size=0) const
 Compare files contents in binary form. More...
 
bool CompareTextContents (const string &file, ECompareText mode, size_t buf_size=0) const
 Compare files contents in text form. More...
 
- Public Member Functions inherited from CDirEntry
 CDirEntry (void)
 Default constructor. More...
 
 CDirEntry (const string &path)
 Constructor using specified path string. More...
 
 CDirEntry (const CDirEntry &other)
 Copy constructor. More...
 
virtual ~CDirEntry (void)
 Destructor. More...
 
const stringGetPath (void) const
 Get entry path. More...
 
void Reset (const string &path)
 Reset path string. More...
 
CDirEntryoperator= (const CDirEntry &other)
 Assignment operator. More...
 
string GetDir (EIfEmptyPath mode=eIfEmptyPath_Current) const
 Get the directory component for this directory entry. More...
 
string GetName (void) const
 Get the base entry name with extension (if any). More...
 
string GetBase (void) const
 Get the base entry name without extension. More...
 
string GetExt (void) const
 Get extension name. More...
 
bool CopyToDir (const string &dir, TCopyFlags flags=fCF_Default, size_t buf_size=0) const
 Copy the entry to a specified directory. More...
 
bool Rename (const string &new_path, TRenameFlags flags=fRF_Default)
 Rename entry. More...
 
bool MoveToDir (const string &dir, TCopyFlags flags=fRF_Default)
 Move the entry to a specified directory. More...
 
bool Backup (const string &suffix=kEmptyStr, EBackupMode mode=eBackup_Default, TCopyFlags copyflags=fCF_Default, size_t copybufsize=0)
 Backup an entry. More...
 
virtual bool Remove (TRemoveFlags flags=eRecursive) const
 Remove a directory entry. More...
 
bool Stat (struct SStat *buffer, EFollowLinks follow_links=eIgnoreLinks) const
 Get status information on a dir entry. More...
 
EType GetType (EFollowLinks follow=eIgnoreLinks) const
 Get a type of a directory entry. More...
 
bool IsFile (EFollowLinks follow=eFollowLinks) const
 Check whether a directory entry is a file. More...
 
bool IsDir (EFollowLinks follow=eFollowLinks) const
 Check whether a directory entry is a directory. More...
 
bool IsLink (void) const
 Check whether a directory entry is a symbolic link (alias). More...
 
string LookupLink (void) const
 Get an entry name that a link points to. More...
 
void DereferenceLink (ENormalizePath normalize=eNormalizePath)
 Dereference a link. More...
 
void DereferencePath (void)
 Dereference a path. More...
 
bool GetTime (CTime *modification, CTime *last_access=0, CTime *creation=0) const
 Get time stamp(s) of a directory entry. More...
 
bool GetTimeT (time_t *modification, time_t *last_access=0, time_t *creation=0) const
 Get time stamp(s) of a directory entry (time_t version). More...
 
bool SetTime (const CTime *modification=0, const CTime *last_access=0, const CTime *creation=0) const
 Set time stamp(s) of a directory entry. More...
 
bool SetTimeT (const time_t *modification=0, const time_t *last_access=0, const time_t *creation=0) const
 Set time stamp(s) of a directory entry (time_t version). More...
 
bool IsNewer (time_t tm, EIfAbsent if_absent) const
 Check if the current entry is newer than a specified date/time. More...
 
bool IsNewer (const CTime &tm, EIfAbsent if_absent) const
 Check if the current entry is newer than a specified date/time. More...
 
bool IsNewer (const string &path, TIfAbsent2 if_absent) const
 Check if the current entry is newer than some other. More...
 
bool IsIdentical (const string &entry_name, EFollowLinks follow_links=eIgnoreLinks) const
 Check if the current entry and the given entry_name are identical. More...
 
bool GetOwner (string *owner, string *group=0, EFollowLinks follow=eFollowLinks, unsigned int *uid=0, unsigned int *gid=0) const
 Get an entry owner. More...
 
bool SetOwner (const string &owner, const string &group=kEmptyStr, EFollowLinks follow=eFollowLinks, unsigned int *uid=0, unsigned int *gid=0) const
 Set an entry owner and/or group. More...
 
bool GetMode (TMode *user_mode, TMode *group_mode=0, TMode *other_mode=0, TSpecialModeBits *special=0) const
 Get permission mode(s) of a directory entry. More...
 
virtual bool SetMode (TMode user_mode, TMode group_mode=fDefault, TMode other_mode=fDefault, TSpecialModeBits special=0, TSetModeFlags flags=eEntryOnly) const
 Set permission mode(s) of a directory entry. More...
 
virtual void SetDefaultMode (EType entry_type, TMode user_mode, TMode group_mode=fDefault, TMode other_mode=fDefault, TSpecialModeBits special=0)
 Set default mode(s) for this entry only. More...
 
bool CheckAccess (TMode access_mode) const
 Check access rights. More...
 

Private Types

typedef CDirEntry CParent
 CDirEntry is the parent class. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CDirEntry
static void SplitPath (const string &path, string *dir=0, string *base=0, string *ext=0)
 Split a path string into its basic components. More...
 
static void SplitPathEx (const string &path, string *disk=0, string *dir=0, string *base=0, string *ext=0)
 Split a path string into its basic components. More...
 
static string MakePath (const string &dir=kEmptyStr, const string &base=kEmptyStr, const string &ext=kEmptyStr)
 Assemble a path from basic components. More...
 
static char GetPathSeparator (void)
 Get path separator symbol specific for the current platform. More...
 
static bool IsPathSeparator (const char c)
 Check whether a character "c" is a path separator symbol specific for the current platform. More...
 
static string AddTrailingPathSeparator (const string &path)
 Add trailing path separator, if needed. More...
 
static string DeleteTrailingPathSeparator (const string &path)
 Delete trailing path separator, if any. More...
 
static string ConvertToOSPath (const string &path)
 Convert relative "path" on any OS to the current OS-dependent relative path. More...
 
static bool IsAbsolutePath (const string &path)
 Check if a "path" is absolute for the current OS. More...
 
static bool IsAbsolutePathEx (const string &path)
 Check if the "path" is absolute for any OS. More...
 
static string GetNearestExistingParentDir (const string &path)
 Given a path, gets the closest parent directory which actually exists. More...
 
static string CreateRelativePath (const string &path_from, const string &path_to)
 Create a relative path between two points in the file system specified by their absolute paths. More...
 
static string CreateAbsolutePath (const string &path, ERelativeToWhat rtw=eRelativeToCwd)
 Get an absolute path from some, possibly relative, path. More...
 
static string CreateAbsolutePath (const string &path, const string &rtw)
 Get an absolute path from some, possibly relative, path. More...
 
static string ConcatPath (const string &first, const string &second)
 Concatenate two parts of the path for the current OS. More...
 
static string ConcatPathEx (const string &first, const string &second)
 Concatenate two parts of the path for any OS. More...
 
static string NormalizePath (const string &path, EFollowLinks follow_links=eIgnoreLinks)
 Normalize a path. More...
 
static bool MatchesMask (const string &name, const string &mask, NStr::ECase use_case=NStr::eCase)
 Match a "name" against a simple filename "mask". More...
 
static bool MatchesMask (const string &name, const vector< string > &masks, NStr::ECase use_case=NStr::eCase)
 Match a "name" against a set of "masks" Note that any name match to empty vector of masks. More...
 
static bool MatchesMask (const string &name, const CMask &mask, NStr::ECase use_case=NStr::eCase)
 Match a "name" against a set of "masks" Note that any name match to empty set of masks. More...
 
static const char * GetBackupSuffix (void)
 Get backup suffix. More...
 
static void SetBackupSuffix (const char *suffix)
 Set backup suffix. More...
 
static CDirEntryCreateObject (EType type, const string &path=kEmptyStr)
 Construct a directory entry object of a specified type. More...
 
static EType GetType (const TNcbiSys_stat &st)
 Get a type of a directory entry by status information. More...
 
static void SetDefaultModeGlobal (EType entry_type, TMode user_mode, TMode group_mode=fDefault, TMode other_mode=fDefault, TSpecialModeBits special=0)
 Set default permission modes globally for all CDirEntry objects. More...
 
static mode_t MakeModeT (TMode user_mode, TMode group_mode, TMode other_mode, TSpecialModeBits special)
 Construct mode_t value from permission modes. More...
 
static void ModeFromModeT (mode_t mode, TMode *user_mode, TMode *group_mode=0, TMode *other_mode=0, TSpecialModeBits *special=0)
 Convert mode_t to permission mode(s). More...
 
static string ModeToString (TMode user_mode, TMode group_mode, TMode other_mode, TSpecialModeBits special, EModeStringFormat format=eModeFormat_Default)
 Convert permission modes to string representation using one of predefined formats. More...
 
static bool StringToMode (const CTempString &mode, TMode *user_mode, TMode *group_mode=0, TMode *other_mode=0, TSpecialModeBits *special=0)
 Convert string (in one of predefined formats, detects automatically) to permission mode(s). More...
 
static void GetUmask (TMode *user_mode, TMode *group_mode=0, TMode *other_mode=0, TSpecialModeBits *special=0)
 Get file/directory mode creation mask. More...
 
static void SetUmask (TMode user_mode, TMode group_mode=fDefault, TMode other_mode=fDefault, TSpecialModeBits special=0)
 Set file/directory mode creation mask. More...
 
static string GetTmpName (ETmpFileCreationMode mode=eTmpFileGetName)
 Get temporary file name. More...
 
static string GetTmpNameEx (const string &dir=kEmptyStr, const string &prefix=kEmptyStr, ETmpFileCreationMode mode=eTmpFileGetName)
 Get temporary file name. More...
 
static fstream * CreateTmpFile (const string &filename=kEmptyStr, ETextBinary text_binary=eBinary, EAllowRead allow_read=eAllowRead)
 Create temporary file and return pointer to corresponding stream. More...
 
static fstream * CreateTmpFileEx (const string &dir=".", const string &prefix=kEmptyStr, ETextBinary text_binary=eBinary, EAllowRead allow_read=eAllowRead)
 Create temporary file and return pointer to corresponding stream. More...
 
- Protected Member Functions inherited from CDirEntry
void GetDefaultMode (TMode *user_mode, TMode *group_mode, TMode *other_mode, TSpecialModeBits *special) const
 Get the default mode. More...
 
mode_t GetDefaultModeT (void) const
 
- Static Protected Member Functions inherited from CDirEntry
static void GetDefaultModeGlobal (EType entry_type, TMode *user_mode, TMode *group_mode, TMode *other_mode, TSpecialModeBits *special)
 Get the default global mode. More...
 

Detailed Description

CFile –.

Define class to work with regular files. NOTE: it don't work with any special or block devices like /dev/null

Models a file in a file system. Basic functionality is derived from CDirEntry and extended for files.

Definition at line 1574 of file ncbifile.hpp.

Member Typedef Documentation

typedef CDirEntry CFile::CParent
private

CDirEntry is the parent class.

Definition at line 1576 of file ncbifile.hpp.

Constructor & Destructor Documentation

CFile::CFile ( void  )
inline

Default constructor.

Definition at line 3958 of file ncbifile.hpp.

References CDirEntry::eFile, CDirEntry::fDefault, and CDirEntry::SetDefaultMode().

CFile::CFile ( const string file)
inline

Constructor using specified path string.

Definition at line 3965 of file ncbifile.hpp.

References CDirEntry::eFile, CDirEntry::fDefault, and CDirEntry::SetDefaultMode().

CFile::CFile ( const CDirEntry file)
inline

Copy constructor.

Definition at line 3971 of file ncbifile.hpp.

CFile::~CFile ( void  )
virtual

Destructor.

Definition at line 3154 of file ncbifile.cpp.

Member Function Documentation

bool CFile::Compare ( const string file,
size_t  buf_size = 0 
) const

Compare files contents in binary form.

Parameters
fileFile name to compare.
buf_sizeSize of buffer to read file. Zero value means using default buffer size.
Returns
TRUE if files content is equal; FALSE otherwise.

Definition at line 3403 of file ncbifile.cpp.

References CFileIO_Base::eOpen, CFileIO_Base::eRead, CErrnoTemplExceptionEx< TBase, PErrCode, PErrStr >::GetErrno(), CFileIO::GetFileSize(), CDirEntry::GetPath(), kDefaultBufferSize, LOG_ERROR, memmove, min(), msg, n, CFileIO::Open(), CFileIO::Read(), CNcbiError::SetErrno(), string, and x_size().

Referenced by Copy().

bool CFile::CompareTextContents ( const string file,
ECompareText  mode,
size_t  buf_size = 0 
) const

Compare files contents in text form.

Parameters
fileFile name to compare.
modeType of white space characters to ignore
buf_sizeSize of buffer to read file. Zero value means using default buffer size.
Returns
TRUE if files content is equal; FALSE otherwise.

Definition at line 3505 of file ncbifile.cpp.

References CDirEntry::GetPath(), in(), kDefaultBufferSize, and NcbiStreamCompareText().

Referenced by PostProcessFile(), and sRunTest().

bool CFile::Copy ( const string new_path,
TCopyFlags  flags = fCF_Default,
size_t  buf_size = 0 
) const
virtual
bool CFile::Exists ( void  ) const
inlinevirtual

Check existence of file.

Note
CDirEntry::Exists() could be faster on some platforms, if you don't need to check that entry is a file.
See also
CDirEntry::Exists

Reimplemented from CDirEntry.

Definition at line 3977 of file ncbifile.hpp.

References CDirEntry::IsFile().

Referenced by BlastDbFileExists(), BOOST_AUTO_TEST_CASE(), CProjectTreeBuilder::BuildOneProjectTree(), CBDB_BlobDeMuxPersistent::CBDB_BlobDeMuxPersistent(), CDBInterfacesFileConnParams::CDBInterfacesFileConnParams(), CFileDBEngine::CFileDBEngine(), CNCHeartBeat::CheckConfFile(), CRR_Util::CheckExistanceAndPermissions(), CGeneFileUtils::CheckExistence(), CheckForFreqRatioFile(), CMsvcSite::CMsvcSite(), CMsvcPrjFilesCollector::CollectSources(), CLDS2_Database::Create(), CBlastDBAliasApp::CreateAliasFile(), CNetStorageServer::CreateCrashFlagFile(), CGlShader::CreateShader(), CRemoteAppLauncher::CRemoteAppLauncher(), CSeqMaskerIstatBin::CSeqMaskerIstatBin(), CTaxDBFileInfo::CTaxDBFileInfo(), DeleteLMDBFiles(), DeserializePauseState(), DeserializeRefuseSubmitState(), CAliasTest::DoTest(), CSeqDB::GetDiskUsage(), CBlastDbFinder::GetFileName(), CLDS2_UrlHandler_File::GetFileSize(), GetIndexSuperHeader(), CGeneFileUtils::GetLength(), CBDB_Cache::GetSizeEx(), CAutoOutputFileReset::GetStream(), CAlignFormatUtil::GetURLFromRegistry(), CSeqDBGiIndex::IndexExists(), CSeqDBIsam::IndexExists(), CAlignFormatUtil::InitConfig(), CNetScheduleServer::InitNodeID(), CExec::IsExecutable(), CFileLoader::LoadFile(), CDiscrepancyDlg::LoadSettings(), CwxSavePdfBaseDlg::OnSaveClick(), CwxSavePdfDlg::OnSaveClick(), CBDB_Cache::Open(), CFileIO::Open(), CBAMDataLoader_Impl::OpenBAMFiles(), CSeqIdChunkFile::OpenForRead(), CChunkFile::OpenForRead(), CSeqIdChunkFile::OpenForWrite(), CChunkFile::OpenForWrite(), CDiagContext::PrintStart(), CTbl2AsnApp::ProcessAnnotFile(), CTbl2AsnApp::ProcessCMTFile(), CTbl2AsnApp::ProcessDSCFile(), CCgiApplication::ProcessHelpRequest(), CTAbleValApp::ProcessOneFile(), CTbl2AsnApp::ProcessOneFile(), CTbl2AsnApp::ProcessPEPFile(), CTbl2AsnApp::ProcessPRTFile(), CTbl2AsnApp::ProcessQVLFile(), CTbl2AsnApp::ProcessRNAFile(), CMetaRegistry::SEntry::Reload(), CNetStorageServer::RemoveCrashFlagFile(), CExec::ResolvePath(), CFileDBEngine::RollbackTransaction(), CRunTestApplication::Run(), CMultiApplication::Run(), CNgAlignApp::Run(), SGridWorkerNodeImpl::Run(), RunLowTraceScript(), CChunkFile::s_FindLastChunk(), CChunkFile::s_FindNextChunk(), s_GetProductRules(), s_LockInstanceGuard(), CRemoteAppRequest::Send(), SerializePauseState(), SerializeRefuseSubmitState(), sUpdateCase(), CCodeGenerator::UndoGenerateCode(), CSaveFileHelper::Validate(), CMsvcConfigure::WriteExtraDefines(), CQueueDataBase::x_AppendDumpLinkedSections(), CAliasTest::x_CheckFile(), CQueueDataBase::x_CheckOpenPreconditions(), CQueueDataBase::x_CreateCrashFlagFile(), CBamLoadingJob::x_CreateDataLoader(), CMakeProfileDBApp::x_CreateDeltaList(), CQueueDataBase::x_CreateDumpErrorFlagFile(), CBamLoadingJob::x_CreateProjectItems(), CNetStorageServer::x_DoesCrashFlagFileExist(), CQueueDataBase::x_DoesCrashFlagFileExist(), CQueueDataBase::x_DoesDumpErrorFlagFileExist(), CMetaRegistry::x_FindRegistry(), CTaxonCache::x_LoadTaxonCache(), CAsnSubCacheCreateApplication::x_LocateBlobsInCache(), CMakeBlastDBApp::x_ProcessMaskData(), CQueueDataBase::x_ReadDumpQueueDesrc(), CQueueDataBase::x_RemoveCrashFlagFile(), CQueueDataBase::x_RemoveDumpErrorFlagFile(), CQueueDataBase::x_RemoveSpaceReserveFile(), CMakeProfileDBApp::x_Run(), BlastdbCopyApplication::x_ShouldCopyPIGs(), BlastdbCopyApplication::x_ShouldParseSeqIds(), CBamLoadOptionPanel::x_ValidateInput(), and CMakeBlastDBApp::x_VerifyInputFilesType().

Int8 CFile::GetLength ( void  ) const

Get size of file.

Returns
Size of the file, if operation successful; -1, otherwise.

Definition at line 3160 of file ncbifile.cpp.

References _T_XCSTRING, CDirEntry::eFile, CDirEntry::GetPath(), CDirEntry::GetType(), NcbiSys_stat, and CNcbiError::SetFromErrno().

Referenced by CChunkFile::Append(), CBlastLMDBManager::CBlastEnv::CBlastEnv(), CheckWrittenFile(), CSeqMaskerIstatBin::CSeqMaskerIstatBin(), CTaxDBFileInfo::CTaxDBFileInfo(), CSeqDB_SimpleAccessor::DoesFileExist(), CAliasTest::DoTest(), CSeqDB::GetDiskUsage(), CLDS2_UrlHandler_File::GetFileSize(), CMemoryFileMap::GetFileSize(), CSeqDBAtlas::GetFileSizeL(), GetIndexSuperHeader(), CGeneFileUtils::GetLength(), GetMemoryUsage(), CBDB_Cache::GetSizeEx(), CArchiveMemory::Load(), CFileLoader::LoadFile(), CDbIndex::LoadIndex(), CTableImportDataSource::LoadTable(), FileMessenger::PollMessageFile(), CTbl2AsnApp::ProcessAnnotFile(), CTbl2AsnApp::ProcessCMTFile(), CTbl2AsnApp::ProcessDSCFile(), CTbl2AsnApp::ProcessPEPFile(), CTbl2AsnApp::ProcessPRTFile(), CTbl2AsnApp::ProcessQVLFile(), CTbl2AsnApp::ProcessRNAFile(), CMetaRegistry::SEntry::Reload(), s_ConvertV4toV5(), CChunkFile::s_FindNextChunk(), s_OpenIndexDB(), CNCServer::WriteEnvInfo(), CAliasTest::x_CheckFile(), CBDB_Cache::x_CreateOverflowReader(), CUnicodeToAsciiTranslation::x_Initialize(), CHTMLPage::x_LoadTemplate(), CHTMLPage::x_LoadTemplateLib(), CSoapServerApplication::x_ProcessWsdlRequest(), CElementaryMatching::x_Search(), BlastdbCopyApplication::x_ShouldCopyPIGs(), BlastdbCopyApplication::x_ShouldParseSeqIds(), and CMakeBlastDBApp::x_VerifyInputFilesType().

virtual EType CFile::GetObjectType ( void  ) const
inlinevirtual

Get a type of constructed object.

Reimplemented from CDirEntry.

Definition at line 1592 of file ncbifile.hpp.

References CDirEntry::eFile.


The documentation for this class was generated from the following files:
Modified on Tue Jan 16 15:39:57 2018 by modify_doxy.py rev. 546573