SH::DiskOutputXRD Class Reference

an implementation of DiskOutput using the XRD protocol More...

#include <DiskOutputXRD.h>

Inheritance diagram for SH::DiskOutputXRD:
SH::DiskOutput

List of all members.

Public Member Functions

void testInvariant () const
 test the invariant of this object
 DiskOutputXRD ()
 standard default constructor
 DiskOutputXRD (const std::string &val_prefix)
 standard constructor

Protected Member Functions

virtual DiskWriterdoMakeWriter (const std::string &sample, const std::string &name, int index, const std::string &suffix) const

Detailed Description

an implementation of DiskOutput using the XRD protocol

Rationale
this is to be used when storing output n-tuples on xrootd servers

Constructor & Destructor Documentation

SH::DiskOutputXRD::DiskOutputXRD (  ) 

standard default constructor

Guarantee
strong
Failures
out of memory I
Warning:
this is only to be used for the root streaming mechanism, not by the end user
SH::DiskOutputXRD::DiskOutputXRD ( const std::string &  val_prefix  ) 

standard constructor

Guarantee
strong
Failures
out of memory II
Precondition:
val_prefix.find ("root://") == 0

Member Function Documentation

virtual DiskWriter* SH::DiskOutputXRD::doMakeWriter ( const std::string &  sample,
const std::string &  name,
int  index,
const std::string &  suffix 
) const [protected, virtual]

create a writer object for a file with the id

Parameters:
sample the name of the sample this belongs to
name the name of the file to create
index the index of the file within the sample, or otherwise -1
suffix the suffix to use for the file
Returns:
the writer object
Precondition:
!sample.empty() || !name.empty()
index >= -1
Postcondition:
result != 0
Guarantee
strong
Failures
out of memory II
Failures
i/o errors rationale: you don't need to set all of these, but you need to set at least either the name or the sample.

Rationale
the virtual part of DiskOutput::makeWriter

Reimplemented from SH::DiskOutput.

void SH::DiskOutputXRD::testInvariant (  )  const

test the invariant of this object

Guarantee
no-fail

Reimplemented from SH::DiskOutput.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1