Go to the documentation of this file. 1 #ifndef __JSUPPORT__JFILERECORDER__
2 #define __JSUPPORT__JFILERECORDER__
92 virtual void open(
const char* file_name)
112 this->
reset(
new JRootFileWriter<T>());
124 this->
reset(
new JNullAccessibleOutput<T>());
135 if (!this->
get()->is_open()) {
bool isDAQFile(const char *file_name)
Check file format.
virtual JAccessibleObjectOutput< T > * get() const
Get pointer.
const void setFilename(const std::string &file_name)
Set file name.
Exception for opening of file.
const std::string & getFilename() const
Get file name.
JFileRecorder(const char *file_name)
Constructor.
friend std::ostream & operator<<(std::ostream &out, const JFileRecorder &recorder)
Write file recorder to output.
bool isROOTFile(const char *file_name)
Check file format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Implementation for null output with null access.
Object(s) writing to binary file (i.e.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Auxiliary class for object writing with named access.
virtual void open(const char *file_name)
Open file.
Support classes and methods for experiment specific I/O.
virtual void reset()
Reset pointer.
bool isMonteCarloFile(const char *file_name)
Check file format.
Object(s) writing to Monte Carlo ASCII file (i.e .evt)
JFileRecorder()
Default constructor.
friend std::istream & operator>>(std::istream &in, JFileRecorder &recorder)
Read file recorder from input.
bool is_valid() const
Check validity of pointer.