Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Types | Public Member Functions | Public Attributes
FileDataEx Class Reference
Inheritance diagram for FileDataEx:
Inheritance graph
[legend]
Collaboration diagram for FileDataEx:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list< FileDataEx >
::iterator 
iterator
typedef std::list< FileDataEx >
::iterator 
iterator

Public Member Functions

 FileDataEx (const FileData &f)
 FileDataEx (const FileData &f, Arc::DataStatus r)
 FileDataEx (const FileData &f)
 FileDataEx (const FileData &f, Arc::DataStatus r)
bool operator== (const char *name)
bool operator== (const FileData &data)
bool has_lfn (void)

Public Attributes

Arc::DataStatus res
PointPairpair
std::string pfn
std::string lfn

Detailed Description

Definition at line 68 of file downloader.cpp.


Member Typedef Documentation

Reimplemented from FileData.

Definition at line 49 of file uploader.cpp.

Reimplemented from FileData.

Definition at line 70 of file downloader.cpp.


Constructor & Destructor Documentation

FileDataEx::FileDataEx ( const FileData f) [inline]

Definition at line 73 of file downloader.cpp.

FileDataEx::FileDataEx ( const FileData f,
Arc::DataStatus  r 
) [inline]

Definition at line 77 of file downloader.cpp.

    : FileData(f),
      res(r),
      pair(NULL) {}
FileDataEx::FileDataEx ( const FileData f) [inline]

Definition at line 52 of file uploader.cpp.

FileDataEx::FileDataEx ( const FileData f,
Arc::DataStatus  r 
) [inline]

Definition at line 56 of file uploader.cpp.

                                                 :
      FileData(f),
      res(r),
      pair(NULL) {}

Member Function Documentation

bool FileData::has_lfn ( void  ) [inherited]

Definition at line 102 of file info_types.cpp.

                           {
  return (lfn.find(':') != std::string::npos);
}
bool FileData::operator== ( const char *  name) [inherited]

Definition at line 94 of file info_types.cpp.

                                           {
  if(name == NULL) return false;
  if(name[0] == '/') ++name;
  const char* pfn_ = pfn.c_str();
  if(pfn_[0] == '/') ++pfn_;
  return (strcmp(pfn_,name) == 0);
}
bool FileData::operator== ( const FileData data) [inherited]

Definition at line 83 of file info_types.cpp.

                                               {
  // pfn may contain leading slash. It must be striped
  // before comparison.
  const char* pfn_ = pfn.c_str();
  if(pfn_[0] == '/') ++pfn_;
  const char* dpfn_ = data.pfn.c_str();
  if(dpfn_[0] == '/') ++dpfn_;
  return (strcmp(pfn_,dpfn_) == 0);
  // return (pfn == data.pfn);
}

Member Data Documentation

std::string FileData::lfn [inherited]

Definition at line 26 of file info_types.h.

Definition at line 72 of file downloader.cpp.

std::string FileData::pfn [inherited]

Definition at line 25 of file info_types.h.

Definition at line 71 of file downloader.cpp.


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