#ifndef NEWMANAGER_H #define NEWMANAGER_H // newManager.h // // HepFileManager * newManager (std::string name); // // Return a HepFileManager * with semantics of new -- the user is responsible // for keeping it around as long as it is needed, then deleting it to avoid // a memory leak. // // The name must be openable as an EXISTING HepTuple file. However, it may // be of any recognized type: Hbook, Root, Histoscope. If the file can't be // opened and recognized as one of these types, we ZMthrow and return a null // pointer. The file will be opened as READ_ONLY. // // The .icc file here works with HBOOK, ROOT, and HISTOSCOPE file managers. // To avoid having to link in one of those, compile with one of these defined: // DONT_LINK_HISTO // DONT_LINK_HBOOK // DONT_LINK_ROOT #include ZM_BEGIN_NAMESPACE( zmht ) /* namespace zmht { */ inline HepFileManager * newManager ( const std::string & name, HepFileManager::mode req_mode = HepFileManager::HEP_UPDATE ); ZM_END_NAMESPACE( zmht ) /* } // namespace zmht */ #include "HepTuple/newManager.icc" #endif // NEWMANAGER_H