HerdSoftware  0.1.1
Public Member Functions | List of all members
Herd::HerdRootPersistenceService Class Reference

Persistence service adding HERD-specific behavior to RootPersistenceService. More...

#include <persistence/HerdRootPersistenceService.h>

Inheritance diagram for Herd::HerdRootPersistenceService:

Public Member Functions

bool BookGlobalObject (const std::string &objName, const std::string &objStore) override
 Prevent booking an object with the same name used for file header object. More...
 
bool EndOfProcessing () override
 Saves the #FileHeader and then calls EA::RootPersistenceService::EndOfProcessing(). More...
 
std::unique_ptr< PersistenceService > Copy (const std::string &name, const std::string &output) override
 Creates a copy of the persistence service. More...
 

Detailed Description

Persistence service adding HERD-specific behavior to RootPersistenceService.

This class adds some HERD-specific bits to the RootPersistenceService provided by EventAnalysis. Currently it automatically saves a #FileHeader global object.

Member Function Documentation

◆ BookGlobalObject()

bool Herd::HerdRootPersistenceService::BookGlobalObject ( const std::string &  objName,
const std::string &  objStore 
)
override

Prevent booking an object with the same name used for file header object.

Returns false if the objName is "fileHeader" since this name is reserved for the #FileHeader object; otherwise the object is booked.

Parameters
objNameThe name of the booked object.
objStoreThe store holding the booked object.
Returns
true if the object name is not "fileHeader" and if it has been correctly booked.

◆ Copy()

std::unique_ptr< PersistenceService > Herd::HerdRootPersistenceService::Copy ( const std::string &  name,
const std::string &  output 
)
override

Creates a copy of the persistence service.

This method creates a copy of the Herd Root persistence service. It is needed to use HerdRootPersistenceService in PersistenceAlgos.

Parameters
nameThe name of the copied Herd Root persistence service.
outputThe name of the output file for the copied persistence service.
Returns
a pointer to the copied persistence service.

◆ EndOfProcessing()

bool Herd::HerdRootPersistenceService::EndOfProcessing ( )
override

Saves the #FileHeader and then calls EA::RootPersistenceService::EndOfProcessing().


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