treqs::File Class Reference

The class File represents a File as a readable object. More...

#include <File.h>

Collaboration diagram for treqs::File:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 File ()
 Constructor.
 File (std::string a)
 Constructor with the name.
 ~File ()
 Destructor.
std::string getHpssName ()
 Getter for the member.
UsergetOwner ()
 Getter for the member.
long long unsigned int getSize ()
 Getter for the member.
void setHpssName (std::string)
 Setter for the member.
void setOwner (User *)
 Setter for the member.
void setSize (long long unsigned int)
 Setter for the member.
void registerFileRequest (const FileRequest &fileReq)
void updateFileRequests (FileStatus)
 Update the status of the file requests TODO AngocA Who uses this method?
void removeFileRequest (unsigned long fr_id)
 Remove the FileRequest having fs_id identifier from the list.
void prepareCleanup ()
 Tells the UsersContoller to unregister the related User instance.

Private Attributes

std::string HpssName
 The name in HPSS namespace.
UserOwner
 The user owning the file in HPSS.
long long unsigned int Size
 The size of the file.
std::list< FileRequestFileRequests
 The file requests asking for this file.

Detailed Description

The class File represents a File as a readable object.


Constructor & Destructor Documentation

treqs::File::File (  ) 

Constructor.

treqs::File::File ( std::string  a  ) 

Constructor with the name.

Providing a file name, the constructor will set it

Parameters:
a the file name
treqs::File::~File (  ) 

Destructor.


Member Function Documentation

std::string treqs::File::getHpssName (  ) 

Getter for the member.

Here is the caller graph for this function:

treqs::User * treqs::File::getOwner (  ) 

Getter for the member.

long long unsigned int treqs::File::getSize (  ) 

Getter for the member.

Here is the caller graph for this function:

void treqs::File::prepareCleanup (  ) 

Tells the UsersContoller to unregister the related User instance.

Before destroying an instance, the FilesController will call this method.

Here is the call graph for this function:

void treqs::File::registerFileRequest ( const FileRequest fileReq  ) 

Adds a file request to the list

Parameters:
fileReq the object to add to the list

Here is the caller graph for this function:

void treqs::File::removeFileRequest ( unsigned long  fr_id  ) 

Remove the FileRequest having fs_id identifier from the list.

void treqs::File::setHpssName ( std::string  h  ) 

Setter for the member.

Here is the caller graph for this function:

void treqs::File::setOwner ( User o  ) 

Setter for the member.

Here is the caller graph for this function:

void treqs::File::setSize ( long long unsigned int  s  ) 

Setter for the member.

Here is the caller graph for this function:

void treqs::File::updateFileRequests ( FileStatus  f  ) 

Update the status of the file requests TODO AngocA Who uses this method?


Member Data Documentation

std::list<FileRequest> treqs::File::FileRequests [private]

The file requests asking for this file.

std::string treqs::File::HpssName [private]

The name in HPSS namespace.

The user owning the file in HPSS.

long long unsigned int treqs::File::Size [private]

The size of the file.


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

Generated on 4 Mar 2010 for TReqS by  doxygen 1.6.1