#include <TFileInfo.h>
Inheritance diagram for TFileInfo:
Public Types | |
enum | EStatusBits |
enum | EStatusBits |
Public Member Functions | |
TFileInfo (const char *url=0, Long64_t size=-1, const char *uuid=0, const char *md5=0, TObject *meta=0) | |
TFileInfo (const TFileInfo &) | |
virtual | ~TFileInfo () |
void | ResetUrl () |
TUrl * | NextUrl () |
TUrl * | GetCurrentUrl () const |
TUrl * | GetFirstUrl () const |
Int_t | GetNUrls () const |
Bool_t | SetCurrentUrl (const char *url) |
Bool_t | SetCurrentUrl (TUrl *url) |
Long64_t | GetSize () const |
TUUID * | GetUUID () const |
TMD5 * | GetMD5 () const |
TList * | GetMetaDataList () const |
TFileInfoMeta * | GetMetaData (const char *meta=0) const |
void | SetSize (Long64_t size) |
void | SetUUID (const char *uuid) |
TUrl * | FindByUrl (const char *url, Bool_t withDeflt=kFALSE) |
Bool_t | AddUrl (const char *url, Bool_t infront=kFALSE) |
Bool_t | RemoveUrl (const char *url) |
Bool_t | AddMetaData (TObject *meta) |
Bool_t | RemoveMetaData (const char *meta=0) |
Bool_t | IsSortable () const |
Int_t | Compare (const TObject *obj) const |
void | Print (Option_t *options="") const |
TFileInfo (const char *url=0, Long64_t size=-1, const char *uuid=0, const char *md5=0, TObject *meta=0) | |
TFileInfo (const TFileInfo &) | |
virtual | ~TFileInfo () |
void | ResetUrl () |
TUrl * | NextUrl () |
TUrl * | GetCurrentUrl () const |
TUrl * | GetFirstUrl () const |
Int_t | GetNUrls () const |
Bool_t | SetCurrentUrl (const char *url) |
Bool_t | SetCurrentUrl (TUrl *url) |
Long64_t | GetSize () const |
TUUID * | GetUUID () const |
TMD5 * | GetMD5 () const |
TList * | GetMetaDataList () const |
TFileInfoMeta * | GetMetaData (const char *meta=0) const |
void | SetSize (Long64_t size) |
void | SetUUID (const char *uuid) |
TUrl * | FindByUrl (const char *url, Bool_t withDeflt=kFALSE) |
Bool_t | AddUrl (const char *url, Bool_t infront=kFALSE) |
Bool_t | RemoveUrl (const char *url) |
Bool_t | AddMetaData (TObject *meta) |
Bool_t | RemoveMetaData (const char *meta=0) |
Bool_t | IsSortable () const |
Int_t | Compare (const TObject *obj) const |
void | Print (Option_t *options="") const |
Private Member Functions | |
void | ParseInput (const char *in) |
TFileInfo & | operator= (const TFileInfo &) |
void | ParseInput (const char *in) |
TFileInfo & | operator= (const TFileInfo &) |
Private Attributes | |
TUrl * | fCurrentUrl |
TList * | fUrlList |
current URL to access the file, points to URL | |
Long64_t | fSize |
TUUID * | fUUID |
TMD5 * | fMD5 |
TList * | fMetaDataList |
TUrl * | fCurrentUrl |
TList * | fUrlList |
current URL to access the file, points to URL | |
TUUID * | fUUID |
TMD5 * | fMD5 |
TList * | fMetaDataList |
Definition at line 50 of file TFileInfo.h.
TFileInfo::TFileInfo | ( | const char * | url = 0 , |
|
Long64_t | size = -1 , |
|||
const char * | uuid = 0 , |
|||
const char * | md5 = 0 , |
|||
TObject * | meta = 0 | |||
) |
TFileInfo::TFileInfo | ( | const TFileInfo & | ) |
Definition at line 68 of file TFileInfo.cxx.
References TList::Add(), TUUID::AsString(), fMD5, fMetaDataList, fSize, fUrlList, fUUID, kCorrupted, kStaged, kTRUE, TObject::ResetBit(), ResetUrl(), TObject::SetBit(), TCollection::SetOwner(), TObject::TestBit(), and u.
TFileInfo::~TFileInfo | ( | ) | [virtual] |
Definition at line 111 of file TFileInfo.cxx.
References fMD5, fMetaDataList, fUrlList, fUUID, and SafeDelete.
TFileInfo::TFileInfo | ( | const char * | url = 0 , |
|
Long64_t | size = -1 , |
|||
const char * | uuid = 0 , |
|||
const char * | md5 = 0 , |
|||
TObject * | meta = 0 | |||
) |
TFileInfo::TFileInfo | ( | const TFileInfo & | ) |
virtual TFileInfo::~TFileInfo | ( | ) | [virtual] |
void TFileInfo::ParseInput | ( | const char * | in | ) | [private] |
Definition at line 122 of file TFileInfo.cxx.
References AddMetaData(), AddUrl(), TString::Data(), f2, fMD5, fSize, fUUID, TNamed::GetName(), TString::IsDigit(), TString::IsNull(), Long64_t, RemoveMetaData(), SafeDelete, TMD5::SetDigest(), sin(), t, and u.
void TFileInfo::ResetUrl | ( | ) | [inline] |
Definition at line 77 of file TFileInfo.h.
References fCurrentUrl, TList::First(), and fUrlList.
Referenced by TProof::ClearData(), GetCurrentUrl(), TFileCollection::GetFilesPerServer(), RemoveUrl(), TDataSetManager::ScanDataSet(), TFileCollection::SetAnchor(), and TFileInfo().
TUrl * TFileInfo::NextUrl | ( | ) |
Definition at line 242 of file TFileInfo.cxx.
References TList::After(), fCurrentUrl, and fUrlList.
Referenced by TProof::ClearData(), TFileCollection::GetFilesPerServer(), and TFileCollection::SetAnchor().
TUrl * TFileInfo::GetCurrentUrl | ( | ) | const |
Definition at line 232 of file TFileInfo.cxx.
References fCurrentUrl, and ResetUrl().
Referenced by TChain::AddFileInfoList(), TProof::ClearData(), do_anadist_ds(), TFileCollection::GetFilesPerServer(), TPacketizerFile::GetNextPacket(), TFileStager::GetPathName(), TProofPlayerRemote::InitPacketizer(), Print(), TDataSetManager::ScanDataSet(), and TDataSetManager::ScanFile().
TUrl* TFileInfo::GetFirstUrl | ( | ) | const [inline] |
Definition at line 80 of file TFileInfo.h.
References TList::First(), and fUrlList.
Referenced by TDSet::Add(), Compare(), TProofOutputFile::Merge(), TDataSetManager::ScanDataSet(), and TSessionFrame::UpdateListOfDataSets().
Int_t TFileInfo::GetNUrls | ( | ) | const [inline] |
Definition at line 81 of file TFileInfo.h.
References fUrlList, and TCollection::GetEntries().
Referenced by TProof::ClearData(), and TDataSetManager::ScanDataSet().
Bool_t TFileInfo::SetCurrentUrl | ( | const char * | url | ) |
Definition at line 320 of file TFileInfo.cxx.
References fCurrentUrl, FindByUrl(), kFALSE, and kTRUE.
Referenced by TFileCollection::GetFilesPerServer().
Definition at line 334 of file TFileInfo.cxx.
References fCurrentUrl, TList::FindObject(), fUrlList, kFALSE, and kTRUE.
Long64_t TFileInfo::GetSize | ( | ) | const [inline] |
Definition at line 86 of file TFileInfo.h.
References fSize.
Referenced by do_anadist_ds(), TFileCollection::GetFilesOnServer(), TFileCollection::GetFilesPerServer(), Print(), and TFileCollection::Update().
TUUID* TFileInfo::GetUUID | ( | ) | const [inline] |
Definition at line 87 of file TFileInfo.h.
References fUUID.
Referenced by TFileCollection::GetFilesOnServer(), TFileCollection::GetFilesPerServer(), Print(), and TFileCollection::RemoveDuplicates().
TMD5* TFileInfo::GetMD5 | ( | ) | const [inline] |
Definition at line 88 of file TFileInfo.h.
References fMD5.
Referenced by TFileCollection::GetFilesOnServer(), TFileCollection::GetFilesPerServer(), and Print().
TList* TFileInfo::GetMetaDataList | ( | ) | const [inline] |
Definition at line 89 of file TFileInfo.h.
References fMetaDataList.
Referenced by TDSet::Add(), TFileCollection::GetFilesOnServer(), TFileCollection::GetFilesPerServer(), and TFileCollection::Update().
TFileInfoMeta * TFileInfo::GetMetaData | ( | const char * | meta = 0 |
) | const |
Definition at line 389 of file TFileInfo.cxx.
References c, xmlio::Class, TList::FindObject(), TList::First(), fMetaDataList, and m.
Referenced by TDSet::Add(), TDataSetManager::FillMetaData(), and TProof::ShowMissingFiles().
void TFileInfo::SetSize | ( | Long64_t | size | ) | [inline] |
Definition at line 92 of file TFileInfo.h.
References fSize.
Referenced by TDataSetManager::ScanFile().
void TFileInfo::SetUUID | ( | const char * | uuid | ) |
Definition at line 217 of file TFileInfo.cxx.
References fUUID.
Referenced by TDataSetManager::ScanFile().
Definition at line 260 of file TFileInfo.cxx.
References fUrlList, TUrl::GetUrl(), RooFit::Index(), and kNPOS.
Referenced by AddUrl(), TFileCollection::GetFilesOnServer(), RemoveUrl(), and SetCurrentUrl().
Definition at line 277 of file TFileInfo.cxx.
References TList::Add(), TList::AddFirst(), fCurrentUrl, FindByUrl(), fUrlList, TCollection::GetSize(), kFALSE, kTRUE, and TCollection::SetOwner().
Referenced by TProofOutputFile::Merge(), ParseInput(), TDataSetManager::ScanDataSet(), and TDataSetManager::ScanFile().
Bool_t TFileInfo::RemoveUrl | ( | const char * | url | ) |
Definition at line 304 of file TFileInfo.cxx.
References fCurrentUrl, FindByUrl(), fUrlList, kFALSE, kTRUE, TList::Remove(), and ResetUrl().
Referenced by TDataSetManager::ScanDataSet().
Definition at line 347 of file TFileInfo.cxx.
References TList::Add(), fMetaDataList, kFALSE, kTRUE, and TCollection::SetOwner().
Referenced by TDataSetManager::FillMetaData(), TFileCollection::GetFilesPerServer(), and ParseInput().
Bool_t TFileInfo::RemoveMetaData | ( | const char * | meta = 0 |
) |
Definition at line 367 of file TFileInfo.cxx.
References TList::FindObject(), fMetaDataList, kFALSE, kTRUE, o, TList::Remove(), and SafeDelete.
Referenced by ParseInput(), and TFileCollection::RemoveMetaData().
Bool_t TFileInfo::IsSortable | ( | ) | const [inline, virtual] |
Reimplemented from TNamed.
Definition at line 410 of file TFileInfo.cxx.
References xmlio::Class, and GetFirstUrl().
void TFileInfo::Print | ( | Option_t * | options = "" |
) | const [virtual] |
Reimplemented from TNamed.
Definition at line 420 of file TFileInfo.cxx.
References TString::Contains(), TMD5::Final(), TList::FindObject(), TList::First(), fMetaDataList, TString::Format(), fUrlList, GetCurrentUrl(), TFileInfoMeta::GetEntries(), GetMD5(), TNamed::GetName(), GetSize(), TNamed::GetTitle(), GetUUID(), TString::Index(), TString::IsNull(), TString::kIgnoreCase, TString::Length(), m, out, Printf(), and u.
Referenced by TProofOutputFile::Merge(), and TProof::ShowMissingFiles().
void TFileInfo::ParseInput | ( | const char * | in | ) | [private] |
void TFileInfo::ResetUrl | ( | ) | [inline] |
TUrl* TFileInfo::NextUrl | ( | ) |
TUrl* TFileInfo::GetCurrentUrl | ( | ) | const |
TUrl* TFileInfo::GetFirstUrl | ( | ) | const [inline] |
Int_t TFileInfo::GetNUrls | ( | ) | const [inline] |
Bool_t TFileInfo::SetCurrentUrl | ( | const char * | url | ) |
Long64_t TFileInfo::GetSize | ( | ) | const [inline] |
TUUID* TFileInfo::GetUUID | ( | ) | const [inline] |
TMD5* TFileInfo::GetMD5 | ( | ) | const [inline] |
TList* TFileInfo::GetMetaDataList | ( | ) | const [inline] |
TFileInfoMeta* TFileInfo::GetMetaData | ( | const char * | meta = 0 |
) | const |
void TFileInfo::SetSize | ( | Long64_t | size | ) | [inline] |
void TFileInfo::SetUUID | ( | const char * | uuid | ) |
Bool_t TFileInfo::RemoveUrl | ( | const char * | url | ) |
Bool_t TFileInfo::RemoveMetaData | ( | const char * | meta = 0 |
) |
Bool_t TFileInfo::IsSortable | ( | ) | const [inline, virtual] |
TUrl* TFileInfo::fCurrentUrl [private] |
Definition at line 53 of file TFileInfo.h.
Referenced by AddUrl(), GetCurrentUrl(), NextUrl(), RemoveUrl(), ResetUrl(), and SetCurrentUrl().
TList* TFileInfo::fUrlList [private] |
current URL to access the file, points to URL
Definition at line 55 of file TFileInfo.h.
Referenced by AddUrl(), FindByUrl(), GetFirstUrl(), GetNUrls(), NextUrl(), Print(), RemoveUrl(), ResetUrl(), SetCurrentUrl(), TFileInfo(), and ~TFileInfo().
Long64_t TFileInfo::fSize [private] |
Definition at line 56 of file TFileInfo.h.
Referenced by GetSize(), ParseInput(), SetSize(), and TFileInfo().
TUUID* TFileInfo::fUUID [private] |
Definition at line 57 of file TFileInfo.h.
Referenced by GetUUID(), ParseInput(), SetUUID(), TFileInfo(), and ~TFileInfo().
TMD5* TFileInfo::fMD5 [private] |
Definition at line 58 of file TFileInfo.h.
Referenced by GetMD5(), ParseInput(), TFileInfo(), and ~TFileInfo().
TList* TFileInfo::fMetaDataList [private] |
Definition at line 59 of file TFileInfo.h.
Referenced by AddMetaData(), GetMetaData(), GetMetaDataList(), Print(), RemoveMetaData(), TFileInfo(), and ~TFileInfo().
TUrl* TFileInfo::fCurrentUrl [private] |
Definition at line 53 of file TFileInfo.h.
TList* TFileInfo::fUrlList [private] |
TUUID* TFileInfo::fUUID [private] |
Definition at line 57 of file TFileInfo.h.
TMD5* TFileInfo::fMD5 [private] |
Definition at line 58 of file TFileInfo.h.
TList* TFileInfo::fMetaDataList [private] |
Definition at line 59 of file TFileInfo.h.