PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
podio::ColWriter< T > Struct Template Reference

#include <ASCIIWriter.h>

+ Inheritance diagram for podio::ColWriter< T >:

Public Member Functions

void writeCollection (CollectionBase *c, std::ostream &o) override
 
- Public Member Functions inherited from podio::ColWriterBase
virtual void writeCollection (CollectionBase *, std::ostream &)=0
 
virtual ~ColWriterBase ()=default
 

Detailed Description

template<class T>
struct podio::ColWriter< T >

Definition at line 24 of file ASCIIWriter.h.

Member Function Documentation

◆ writeCollection()

template<class T >
void podio::ColWriter< T >::writeCollection ( CollectionBase c,
std::ostream &  o 
)
inlineoverridevirtual

Implements podio::ColWriterBase.

Definition at line 25 of file ASCIIWriter.h.

25 {
26 T* col = static_cast<T*>(c);
27 o << col->size() << std::endl;
28 o << *col << std::endl;
29 }

The documentation for this struct was generated from the following file: