25 #define ADF_FRAMEIO_H ADF_FrameIO
27 #ifndef ADF_FrameBlock
99 virtual const std::string &
GetName()
const
106 {
return "BaseFrameIO"; }
132 virtual void Print(std::ostream &out = std::cout)
const;
171 std::vector<Counter> fTrigCountersIN;
172 std::vector<Counter> fTrigCountersOUT;
175 UInt_t fRead, fWritten, fTriggerRate;
232 {
return "FrameIO"; }
272 virtual Bool_t
Notify(Bool_t with_inner_trigger =
false);
285 virtual void Print(std::ostream &out = std::cout)
const;
virtual Bool_t Check(DFTrigger *, PtrStack< DFTrigger > &, PtrStack< DFTrigger > &)
check if a trigger is suitable for the dataflow
EStatus GetStatus() const
header file for FrameBlock.cpp
virtual const Char_t * GetType() const
What kind of data flow is it ?
Bool_t DoGlobalReconfiguration()
Bool_t DoRewind(Bool_t rewind=true)
if set true, rewind is done once a block is attached. Return the previous value
virtual Bool_t Notify(Bool_t with_inner_trigger=false)
To know the number of registered triggers.
EStatus
current state of the FrameIO
virtual void Print(std::ostream &out=std::cout) const
Print some informations (statistics)
ConfAgent::EModel GetModel() const
UInt_t GetFramesRead() const
void SetModel(ConfAgent::EModel model)
static ConfAgent * theGlobalAgent(std::string="Agata")
to get the global agent
One stream as an input and one in output.
header file for Counter.cpp
virtual Bool_t Register(DFTrigger *)
To register a trigger.
virtual const DFTrigger * GetGlobalConfigurationTrigger()
to check whether or not a global reconfiguration has occured
BaseFrameIO(const char *)
virtual const std::string & GetName() const
Name of this FrameIO.
Base class to get/write Frames.
virtual const Char_t * GetType() const
virtual void Detach(FrameBlock *in, FrameBlock *out)
void SetStatus(EStatus stat)
virtual Bool_t NextFrame()
to know if there is a next frame of the dataflow
Base class for a Log message.
const FrameBlock * GetCurrentBlockIN() const
const FrameBlock * GetCurrentBlockOUT() const
Base class for a trigger on a data flow.
header file for ConfAgent.cpp
virtual void Print(std::ostream &out=std::cout) const
Print some informations (statistics)
UInt_t GetFramesWritten() const
LogMessage Log
to send messages to the log server
virtual void Attach(FrameBlock *in, FrameBlock *out)
Attach a block to this. Rewind called if DoRewind set to true (Default)
virtual Bool_t RecordGlobalConfiguration(const std::string="NO")
write the current configuration in the output data
virtual DFTrigger * GetTrigger(const Char_t *)
To retrieve a trigger by its unique name.
ConfAgent * GetConfAgent() const
Return the agent which keeps the current configuration for that FrameIO.
virtual void SetName(const char *name)
virtual const char * GetStringStatus(EStatus) const
string corresponding to the current status