treqs::FilePositionOnTapesController Class Reference

Class Controller for the FilePostionOnTape classes. More...

#include <FilePositionOnTapesController.h>

Inheritance diagram for treqs::FilePositionOnTapesController:
Inheritance graph
[legend]
Collaboration diagram for treqs::FilePositionOnTapesController:
Collaboration graph
[legend]

List of all members.

Public Member Functions

FilePositionOnTapecreate (File *f, Tape *t, int p) throw (DuplicateObjectException)
 Create a new FilePositionOnTape object.
FilePositionOnTapeadd (File *f, Tape *t, int p) throw (DuplicateObjectException)
 Create a new FilePositionOnTape object.

Static Public Member Functions

static
FilePositionOnTapesController
getInstance ()
 Provides pointer to the singleton instance.

Protected Member Functions

 FilePositionOnTapesController ()
 Constructor.
 ~FilePositionOnTapesController ()
 Destructor.

Private Attributes

std::string prefix
 Prefix for the name of an instance.
std::string suffix
 Suffix for the name of an instance.

Static Private Attributes

static
FilePositionOnTapesController
_instance = 0
 Pointer to the singleton instance.
static LoggerPtr logger
 The LOG4CXX logger.

Detailed Description

Class Controller for the FilePostionOnTape classes.


Constructor & Destructor Documentation

treqs::FilePositionOnTapesController::FilePositionOnTapesController (  )  [protected]

Constructor.

Here is the caller graph for this function:

treqs::FilePositionOnTapesController::~FilePositionOnTapesController (  )  [protected]

Destructor.


Member Function Documentation

FilePositionOnTape * treqs::FilePositionOnTapesController::add ( File f,
Tape t,
int  p 
) throw (DuplicateObjectException)

Create a new FilePositionOnTape object.

If the object does not already exists, create a new one If the object exists, update metadata and return it. Here we also register the tape instance and the File instance on their respective controllers

Parameters:
f the reference to the file
t the reference to the tape
p the position
Returns:
a pointer to the FilePostionOnTape object

Here is the call graph for this function:

Here is the caller graph for this function:

FilePositionOnTape * treqs::FilePositionOnTapesController::create ( File f,
Tape t,
int  p 
) throw (DuplicateObjectException)

Create a new FilePositionOnTape object.

If the object does not already exists, create a new one If the object exists, throw exception

Parameters:
f the reference to the file
t the reference to the tape
p the position
Returns:
a pointer to the FilePostionOnTape object

Here is the call graph for this function:

FilePositionOnTapesController * treqs::FilePositionOnTapesController::getInstance (  )  [static]

Provides pointer to the singleton instance.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Pointer to the singleton instance.

LoggerPtr treqs::FilePositionOnTapesController::logger [static, private]

The LOG4CXX logger.

Reimplemented from Controller< FilePositionOnTape >.

Prefix for the name of an instance.

Suffix for the name of an instance.


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

Generated on 4 Mar 2010 for TReqS by  doxygen 1.6.1