Skip to content

File NPVDataOutput.h

File List > core > NPVDataOutput.h

Go to the documentation of this file

#ifndef NPVDataOutput_h
#define NPVDataOutput_h 1
#include <string>
#include <vector>
namespace nptool {
  class VDataOutput {
   public:
    VDataOutput(){};
    virtual ~VDataOutput(){};

   public: // inheritted from VDataOutput, must be implemented
    // Initialise the input
    virtual void Init(std::vector<std::string> arg) = 0;
    // use to attach link an object to the input
    virtual void Attach(std::string, std::string, void*) = 0;
    // include an AsciiFile to the ouput file if supported by the format
    virtual void AttachAsciiFile(std::string name, std::string title, std::string path) = 0;
    // write current event to file
    virtual void Fill() = 0;
    // return number of entry
    virtual long long GetEntries() { return 0; };
  };

} // namespace nptool
#endif