Jpp  19.1.0
the software that should make you happy
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
JSUPPORT::JDAQWriterObjectOutput< T, true > Class Template Reference

Implementation of object output for DAQ compatible data types. More...

#include <JDAQFileWriter.hh>

Inheritance diagram for JSUPPORT::JDAQWriterObjectOutput< T, true >:
JIO::JWriterObjectOutput< T > JLANG::JObjectOutput< T >

Public Member Functions

virtual bool put (const T &object) override
 Object output. More...
 

Protected Member Functions

 JDAQWriterObjectOutput (JWriter &writer)
 Constructor. More...
 

Private Member Functions

bool put (const T &object, JLANG::JBool< true >)
 
bool put (const T &object, JLANG::JBool< false >)
 

Private Attributes

JWriterout
 

Detailed Description

template<class T>
class JSUPPORT::JDAQWriterObjectOutput< T, true >

Implementation of object output for DAQ compatible data types.

This class implements the JLANG::JObjectOutput interface.

Definition at line 51 of file JDAQFileWriter.hh.

Constructor & Destructor Documentation

◆ JDAQWriterObjectOutput()

template<class T >
JSUPPORT::JDAQWriterObjectOutput< T, true >::JDAQWriterObjectOutput ( JWriter writer)
inlineprotected

Constructor.

Parameters
writerJWriter output

Definition at line 60 of file JDAQFileWriter.hh.

60  :
62  {}
Implementation of object output using JIO::JWriter for single data type.

Member Function Documentation

◆ put() [1/3]

template<class T >
virtual bool JIO::JWriterObjectOutput< T >::put ( const T &  object)
inlineoverridevirtualinherited

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 52 of file JWriterObjectOutput.hh.

53  {
55  }
virtual bool put(const T &object) override
Object output.
Auxiliary template class for type bool.
Definition: JBool.hh:21
Template class test for polymorphism.
Definition: JConversion.hh:22

◆ put() [2/3]

template<class T >
bool JIO::JWriterObjectOutput< T >::put ( const T &  object,
JLANG::JBool< true >   
)
inlineprivateinherited

Definition at line 58 of file JWriterObjectOutput.hh.

58 { return (bool) object.write(out); }

◆ put() [3/3]

template<class T >
bool JIO::JWriterObjectOutput< T >::put ( const T &  object,
JLANG::JBool< false >   
)
inlineprivateinherited

Definition at line 59 of file JWriterObjectOutput.hh.

59 { return (bool) (out << object); }

Member Data Documentation

◆ out

template<class T >
JWriter& JIO::JWriterObjectOutput< T >::out
privateinherited

Definition at line 61 of file JWriterObjectOutput.hh.


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